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??

Answers were Sorted based on User's Feedback



what is diffrence between protected ,internal and protected internal?? whether protected field av..

Answer / 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

what is diffrence between protected ,internal and protected internal?? whether protected field av..

Answer / priya

Protected means within the same class and types derived from containing class.
.Internal means within the same assembly.
Yes, protected field will be available in derived class which is
outside the assembly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is difference between a type and class?

0 Answers   Arigo Infotech,


What does firstordefault mean in c#?

0 Answers  


what is a constructor? What is a destructor?

0 Answers  


What is difference between mutable and immutable in c#?

0 Answers  


What is the difference between static and private constructor?

0 Answers  






What is the use of the dispose method in C# ?

0 Answers   Infosys,


What are the different types of constructors?

0 Answers  


What is use of FormBoarderStyle Propertie

0 Answers   MCN Solutions,


What is local function?

0 Answers  


Where’s global assembly cache located on the system?

0 Answers  


What is the difference between method and constructor in c#?

0 Answers  


What's the difference between System.String and System..StringBuilder in C#?

0 Answers   PUCIT,


Categories