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 output of TextWriterTraceListener redirected?
What is constants in c#?
What is the default value of boolean variable?
What is list collection in c#?
What is hierarchical inheritance in c#?
What is get set in c#?
What is regex c#?
What is Satellite Assemblies ?
What is asynchronous one-way calls?
What are the basics of c#?
What is the use of convert toint32 in c#?
Can you pass parameters to destructors?
What do you mean by string objects are immutable?
What is exe in c#?
What is the namespace for datatable in c#?