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
Is a decimal an integer?
What is a singleton unity?
What is access specifier in c#?
Explain the term inheritance in C#.
Explain the difference between abstract class and interface in .net?
What is an int in c#?
Can we override main method in c#?
Can int be null in c#?
How do I make a dll in c#?
How do you prevent a method from being overridden in c#?
What is selector c#?
What is asynchronous one-way calls?
Can derived classes have greater accessibility than their base types?
What are Types of assemblies that can be created in dotnet
Write a program in c# to find the angle between the hours and minutes in a clock?