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

what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1737


How to add controls dynamically to the form using c#.net.

672


Why we use oops in c#?

759


How do you specify a custom attribute for the entire assembly?

668


What is readline library?

715


What is the difference between list and array in c#?

666


What is difference between list and dictionary in c#?

658


What is typeof undefined?

678


What is constants in c#?

595


what is IDisposal interface

916


What does addressof operator do in background ?

792


What is difference between event and delegate in c#?

678


How do you remove white spaces from a string?

713


Explain attributes in c#?

639


How to use exception handling in stored procedure?

752