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

Why do we need serialization?

0 Answers  


What are generations and how are they used by the garbage collector?

0 Answers  


Why do we use Design Pattern?

1 Answers   Impetus,


What is a proxy of the server object in .NET Remoting?

1 Answers   BirlaSoft,


What is sqlcommandbuilder c#?

0 Answers  






Can we instantiate abstract class in c#?

0 Answers  


What are the properties of c#?

0 Answers  


What?s the .NET datatype that allows the retrieval of data by a unique key?

1 Answers  


What is the difference between firstordefault and first?

0 Answers  


What is the default value of date?

0 Answers  


What do you mean by for each loop?

0 Answers  


What are modifiers in c#?

0 Answers  


Categories