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 generation of Garbage Collection in C# .NET ?
Why do we use Design Pattern in C#?
What is the interface in c#?
What is meaning of type safety in c#?
What is the do while loop code?
Is c# the same as d flat?
Explain the difference between “constant” and “read-only” variables used in c#?
What is a decimal in c#?
When do we generally use destructors to release resources?
What is signature c#?
What is a console?
What is threading in c# with example?
What is a race condition?
Can you use foreach iteration on arrays in c#?
What do you mean by jagged arrays in c#?