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
Explain the OOPS concept in C#?
What are destructors in C#?
Why constructor is used in c#?
What's the difference between System.String and System..StringBuilder in C#?
What is difference between C# and VB.NET?
How many root nodes are there in an xml document?
What is the difference between icomparer and icomparable in c#?
Why it's said that writing into .NET Application Configuration Files is a Bad Idea?
Can partial class be inherited?
What is the use of partial methods?
What is the difference between hashtable and dictionary in c#?
What is the difference between Singleton design pattern and Factory design pattern?
Explain the Abstract class in c#.net
Does unity require coding?
Is c# front end or back end?