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


Please Help Members By Posting Answers For Below Questions

How do I create a multilanguage, single-file assembly?

494


What is the difference between method overriding and method overloading?

478


What do u mean by delegation?

533


How do you define a predicate?

484


Why reflection is used in c#?

492






What is class and object c#?

484


Contrast System.String and System.Text.StringBuilder classes?

524


What is datacontract in c#?

483


What is out int in c#?

478


Are c# strings null terminated?

531


What is the use of table aliases?

488


Do vs while c#?

487


How to reduce image resolution in C#?

627


How is a strongly-named assembly different from one that isn’t strongly-named?

605


What is Covariance and contravariance in C#?

557