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
What are the variables in c#?
What is the difference between a method and a property?
What is private and shared assembly?
What is get set in c#?
Why do we use void in c#?
Does unity require coding?
What is the syntax for calling an overloaded constructor within a constructor?
What is _viewstart cshtml?
What is overloading with example?
What is default boolean value in c#?
What is iqueryable in c#?
What is a static field?
What is the use of convert toint32 in c#?
Is and as keyword in c# net?
What is 8 bit signed integer?