Explain about Protected and protected internal, ?internal?
access-specifier?
Answer Posted / sumathi
Protectd :
Method declared as Protected,means it is accessible only in
it's derived classes.
So with this access specifier we can provide more security
to the class members.
Protected internal:
Methods or varibales are declared as protected internal are
accessible in the derived classes but outside the assembly
also.
Internal:
Member Methods or member variables declared as internal are
accessible with in classes of the same assembly.
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
Can constructor be protected?
What is constructor overloading in c#?
Is learning c# hard?
When To use HashTable In C#
what is .NET framework architecture ??
Distinguish between array and arraylist in c#?
Explain metadata in c#.
What is a long in c#?
How many destructors can a class have?
What are jump statements in c#?
Can we have two main methods in c#?
How to override a function in c#?
What is an abstract class c#?
What is the example of predicate?