What is the difference between protected and protected internal?
Answer Posted / anusha
Internal:
When Members of a class are declared as internal, then they can be accessed
1. within the class in which they are declared.
2. within the derived classes of that class available within the same assembly.
3. outside the class within the same assembly.
Protected:
When Members of a class are declared as protected, then they can be accessed
1. within the class in which they are declared.
2. within the derived classes of that class available within the same assembly.
3. within the derived classes of that class available outside the assembly.
Protected internal:
When Members of a class are declared as protected internal, then they can be accessed
1. within the class in which they are declared.
2. within the derived classes of that class available within the same assembly.
3. outside the class within the same assembly.
4. within the derived classes of that class available outside the assembly.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Is c++ or c# better?
What is a hash table in c#?
What do you mean by expression tree?
What is a thread? What is multithreading?
What is the difference between static and constant variables?
What is class method?
What is generic and non generic collections in c#?
What is verbatim string?
What is selector c#?
What are mutable and immutable types in c#?
What framework is used for performance testing/load testing?
What is the purpose of ienumerable in c#?
What is the difference between array and list in c#?
For methods inside the interface why can’t you specify the accessibility modifier?
what are the Disadvantages of vb