Access Modifiers2
Access Modifiers2
PRIVATE:-
The type or member can only be accessed by code in
the same class or structure.
PROTECTED:-
The type or member can accessed by code in the same
class or structure, or in a derived class.
INTERNAL PROTECTED:-
The type or member can be accessed by any code in the
same assembly, or by any derived class in another assembly.
Protected With in the type and the type Derived from the Containing type.
Internal Protected Any where within the Containing Assembly, and within the derived class in any other
Assembly.
NOTE: - When no access modifiers set, a default access modifier is used. So there is always some form of
access modifier even if it's not set.
By: MIRZA GHAZANFAR BAIG
THANK YOU!