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
Differentiate between dataset and datareader?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
Major difference between Basic httpbinding and WShttpbinding?
How do I create a dbml file?
What is the difference between firstordefault and first?
What is bit in c#?
What does addressof operator do in background ?
What are functions in c#?
What is the use of tryparse in c#?
What is xml serialization and deserialization in c#?
What are virtual classes in c#?
What is expression c#?
Can you put two constructor with the same structure in a class?
Is datetime immutable c#?