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 generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
How to add controls dynamically to the form using c#.net.
Why we use oops in c#?
How do you specify a custom attribute for the entire assembly?
What is readline library?
What is the difference between list and array in c#?
What is difference between list and dictionary in c#?
What is typeof undefined?
What is constants in c#?
what is IDisposal interface
What does addressof operator do in background ?
What is difference between event and delegate in c#?
How do you remove white spaces from a string?
Explain attributes in c#?
How to use exception handling in stored procedure?