Explain about Protected and protected internal, ?internal?
access-specifier?
Answer Posted / sudhir kumar
Protected access specifier allows a class to hide its member
variables and member functions from other class objects and
functions, except the child class.
The protected access specifier becomes important while
implementing inheritance.
Protected members are not Visible to objects of other class,
or other classes outside the namespace collection,and also
not visible to objects of child classes outside the
namespace collection.
Protected access specifier allows a class to hide its member
variables and member functions from other class objects and
functions, except the child class,with in the application.
The protected access specifier becomes important while
implementing inheritance.
Protected members are not Visible to objects of other class,
or other classes outside the namespace collection,and also
not visible to objects of child classes outside the
namespace collection.
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is a private class in c#?
What is a derived class in c#?
Which debugging tools you can use in the .NET ssSDK?
How to find whether the application is run from inside ide or not?
Why dataset is used in c#?
Why do we use struct in c#?
What is AutoMapper in C#?
What is the difference between paramaterized constructor and copy constructor?
What is private variable?
What is tryparse c#?
How Is The Dll Hell Problem Solved In .net?
What is the purpose of ienumerable in c#?
What is use of console?
How does one compare strings in c#?
What is args c#?