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 difference between gridview and form view?
What is cts, clr?
What is a virtual property. Give an example?
What standard types does c# use?
What is Wrapper class in dot net?
What is class sortedlist underneath?
Why do we need nullable types in c#?
What is token in c#?
Explain the use of Mutex in C#?
what is virtual method in c#?
What is difference between a function and a method?
What is immutable in C#?
Are enums static c#?
What is verbatim literal in c#?
What can we do to handle multiple exceptions?