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
Can properties be static in c#?
Can we declare private class in c#?
What is a Assembly?
What are the different types of classes?
Is list immutable in c#?
Is c# queue thread safe?
What is disconnected data architecture in c#?
What is boolean conditions in c#?
How do I get deterministic finalization in c#?
Is it possible to have a static indexer in c#? Allowed in c#.
Define satellite assembly in c#?
What does int32 mean?
What is use of abstract class in c#?
What are the different types of classes in c#?
What are Uses of CLR