top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is access modifier ?

0 votes
345 views
What is access modifier ?
posted Sep 8, 2014 by Neelam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Access modifiers are keywords used to specify the declared accessibility of a member or a type. In .net we have four type of access modifiers:

  • public - Available to all and access is not restricted.
  • protected - Access is limited to the containing class or types derived from the containing class.
  • internal - Access is limited to the current assembly
  • private - Access is limited to the containing type.
answer Sep 8, 2014 by Yogeshwar Thakur
...