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 you create partial delegates and enumerations?
Can we inherit class that contains only one private constructor?
Explain what is the smallest unit of execution in .net?
Are tuples mutable c#?
What's the c# syntax to catch any possible exception?
Is it possible to have different access modifiers on the get/set methods of a property?
What do you understand by 'access specifiers' in C#?
Why c# is type safe?
Can a abstract class have a constructor?
How can i Spawn a Thread
How do you sort a list in c#?
What is desktop GUI application?
What is the difference between yield and return?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
What is int16?