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 ac callback?
What are the delegates in c#?
What is default access specifier for class in c#?
How big is an int in c#?
What is private variable?
Explain the steps to create satellite assembly?
What is c-sharp (c#)?
What are c# collections?
What is default method in c#?
Explain how to implement an object pool in c#.net
What is stringwriter c#?
What is the difference between system.text.stringbuilder and system.string?
What is the difference between static and constant variables?
What are the different types of comments in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?