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 class fields?
Enlist all the components of an ado.net framework?
what is a structure in c#
What are the different types of classes?
What is xaml in c#?
What is use of private class in c#?
Is arraylist type safe in c#?
What does console mean c#?
Explain what is an interface in c#?
What is _viewstart cshtml?
What is clr namespace?
Why are local variables stored in stack?
Explain the steps to create satellite assembly?
Explain about Serialize and MarshalByRef?
What is xml document how do you open it?