Interviews5 answers
What is type of Access modifier ?
5 Answers
Private : Accessible only inside the class.
Protected :Accessible only in derived class.
Public: Accessible inside the class as well as outside the class.
Internal : Accessible inside the class/Application and accessible outside the class but not Application.
Internal Protected: Accessible inside the derived class and application but not accessible outside the derived class.
Dimpy DhimanPosted Jul 24, 2016, 12:03 PM EDT
http://csharp.net-informations.com/language/csharp-access-specifiers.htm
Munesh SharmaPosted May 30, 2016, 9:00 PM EDT
Public Private Protected PrivateProtected
Amit ParmarPosted Mar 10, 2016, 9:29 PM EST
Access Modifiers
Access Modifiers (Access Specifiers) describes as the scope of accessibility of an Object and its members. We can control the scope of the member object of a class using access specifiers. The following five accessibility levels can be specified using the access modifiers:
public, private , protected , internal and protected internal
public: Access level is not restricted.
protected: Access level is limited to the containing class or types derived from the containing class.
What are the Default Access Modifiers in C# ?
Internal: Access level is limited to the current assembly.
protected internal: Access level is limited to the current assembly or types derived from the containing class.
private: Access level is limited to the containing type.
If no modifier is specified, the method is given private access.
Dharmendra RaiPosted Jan 5, 2016, 11:09 PM EST
Access modifier are
Public
Internal
Protected
Protected Internal
Private
Sandeep KumarPosted Dec 19, 2015, 2:52 AM EST


