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
Why we use get set in c#?
Explain the features of an abstract class in net.
Can we inherit class that contains only one private constructor?
Could you explain the difference between func vs action vs predicate?
Can we call server-side code (c# or vb.net code) from javascript?
What is the xml document structure?
What are the Types of JIT and what is econo-JIT
Does c# do array bounds checking?
What is private variable?
What is the use of return in c#?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
What is generic in c#?
Why is main static in c#?
What is a console?
Will the following code compile?