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
How do I create a multilanguage, single-file assembly?
What is the difference between method overriding and method overloading?
What do u mean by delegation?
How do you define a predicate?
Why reflection is used in c#?
What is class and object c#?
Contrast System.String and System.Text.StringBuilder classes?
What is datacontract in c#?
What is out int in c#?
Are c# strings null terminated?
What is the use of table aliases?
Do vs while c#?
How to reduce image resolution in C#?
How is a strongly-named assembly different from one that isn’t strongly-named?
What is Covariance and contravariance in C#?