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

Can we override interface methods in c#?

0 Answers  


How are methods overloaded?

0 Answers  


What is int tryparse in c#?

0 Answers  


Why data types are important in c#?

0 Answers  


What is the difference between string and string in c#?

0 Answers  






What is the main method in c#?

0 Answers  


How encapsulation and abstraction defined/used in C#.NET.

8 Answers   Synechron,


What are native methods?

0 Answers  


What are the properties of c#?

0 Answers  


What are mutable and immutable types in c#?

0 Answers  


What is dataadapter c#?

0 Answers  


Can int be null in c#?

0 Answers  


Categories