Access
Specifiers in C#
- Public
Accessible everywhere, public access
- Private Only within a class it is declared.
- Internal Only class within same assembly
- Protected Class and derived class
- Protected Internal Class and derived class within same assembly.
type
|
Default access specifer
|
Enum
|
public
|
Class
|
private
|
Stuct
|
private
|
interface
|
public
|
Comments
Post a Comment