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


Please Help Members By Posting Answers For Below Questions

How we can create an array with non-default values?

504


Why interface is required?

463


Can you instantiate a struct without using a new operator in c#?

530


How do I open the console window?

569


Is xml tags are case sensitive?

480






Why do we parse in c#?

464


What is string method in c#?

495


Define xslt.

544


Is string a primitive data type in c#?

502


Can we change static variable value in c#?

487


What do constructors do in c#?

506


What is a method signature c#?

517


Does a class need a constructor c#?

486


What is window application in c#?

494


What is the full form of GAC? Explain its uses?

572