What is the difference between protected and protected internal?
Answer Posted / lakshmi harathi
Protected: This also allows a class to hide its member
var. and member func. from other class objects and
function, except the child class. it becomes important
while implementing inheritance.
"it can be accessible into derived class with in the same
application "
"protected members can be accessed within the class and the
derived class"
Protected Internal: it's similar to Protected access
specifier, it also allows a class to hide its member
variables and member function to be accessed from other
class objects and function, excepts child class, within the
application. used while implementing inheritance.
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
What is arraylist?
What to implement on my class Finalize or IDisposable
What is parallel programming in c#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
What is the benefit of using interface in c#?
Explain attributes in c#?
What is verbatim string?
Why do we use ienumerable in c#?
What is the difference between continue and break statement?
What is c# used for?
What is an interface class in c#?
how dot net compiled code will become platform independent?
Where static variables are stored?
How the versioning applies to Assemblies or can you explain version numbers?
What is difference between Trace and Debug