Basically five types of access modifiers
support c#. These are
Private:- Member is accessible only within the class containing the member.
Public:- Member is accessible from anywhere outside the class as well .It
is also accessible in derived classes.
Protected:- Member is visible only to its own class and its derived classes.
Internal:- Member is available within the assembly or component that is
being created but not to the clients of that component.
Protected Internal:- Available in the containing program or assembly and in the
derived classes.
No comments:
Post a Comment