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 application object in c#?

0 Answers  


give suitable code for all login controls

1 Answers  


When compiler adds a default constructor to a class?

4 Answers   TCS,


what kind of questions (.net)to expect in a telephonic interview.This is the first time i will be facing a tele interview .Any inputs regarding this??

2 Answers   iNube Software Solutions,


Difference between dispose and destructor?

3 Answers   TCS,






C# Code for How to set readonly property to Id(database) value?

2 Answers   HCL,


What are the advantages of properties in c#?

0 Answers  


what is the difference between c-sharp and vb.net?What kind of security or advances we find in both languages?

3 Answers   DataPoint,


List out two different types of errors in c#?

0 Answers  


What is Fragmentation and its Types?

0 Answers   MCN Solutions,


What are data types with examples?

0 Answers  


What is the name of c# compiler?

0 Answers  


Categories