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
How we can create an array with non-default values?
Why interface is required?
Can you instantiate a struct without using a new operator in c#?
How do I open the console window?
Is xml tags are case sensitive?
Why do we parse in c#?
What is string method in c#?
Define xslt.
Is string a primitive data type in c#?
Can we change static variable value in c#?
What do constructors do in c#?
What is a method signature c#?
Does a class need a constructor c#?
What is window application in c#?
What is the full form of GAC? Explain its uses?