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
What is difference between web and window application?
Is collection a data structure?
Why dataset is used in c#?
What is a predicate in c#?
What is a method c#?
Is c sharp free?
What is an array class?
Explain how do I get deterministic finalization in c#?
How does bitwise xor work?
What is the system namespace?
what is IComparable
explain the features of static/shared classes.
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
Is c# scripting language?
Can we extend static class in c#?