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 ienumerable t in c#?
What is an assembly qualified name? Is it a filename? How is it different?
Explain the difference between proc. Sent by val and by sub?
What is a float?
What is the difference between firstordefault and first?
Can we write class inside a class in c#?
What does the initial catalog parameter define in the connection string?
Is stringbuilder better than string?
What is the object class in c#?
What is orm in c#?
What is difference between events and delegates?
What is the namespace for the thread class?
What is delegates and events?
Why do we need ienumerable in c#?
What is exe in c#?