What is the difference between protected and protected internal?
Answer Posted / sujai cn
protected :
The members which are declared as protected can only be
accesed from the derived class.
Internal :
In c# The members which are declared as Internal can only
be accessed "with in the assembly(dll or an exe)".
Thus when we declare a member as protedcted internal it can
be accessed by the derived class with in the same asssembly.
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What is the importance of closing an ado.net application?
Can we inherit private members of class in c#?
How many dimensions can an array have?
What are namespaces, and how they are used?
What is default parameter in c#?
What can be done with c#?
What is difference between private and protected?
List down the differences between public, static and void keywords?
Illustrate namespaces in c#?
What is c# best for?
Why do we need serialization?
How do I create a delegate/multicastdelegate?
Is a c# interface the same as a c++ abstract class?
Define Virtual folder?
What language is arduino?