what is diffrence between protected ,internal and protected
internal??
whether protected field available in derived class which is
outside the assembly.
if not ..this is possible by which access modifiers??

Answer Posted / komilla shaheen

Protected means within the same class .Internal means
within the same assembly.Protected internal means class
member within the same class,inherited classes in the same
assembly.i think it protected internal which is availble
in derived class which is outside the assembly.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does writeline mean?

706


What is the difference between int.parse and int.tryparse methods?

747


Why do we need singleton class in c#?

719


What is the purpose of c#?

724


What is the base class in .net from which all the classes are derived from?

714


Can you explicitly call a destructor?

690


What is the use of table aliases?

662


What does an indexer do?

636


Explain what are the steps for creating clr trigger?

647


Define an assembly in .net?

731


What is a clr (common language runtime)?

672


Explain inheritance in c#?

720


Explain the difference between .net and c#?

691


What is the difference between parse and tryparse in c#?

703


What is deferred execution in c#?

710