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

How you will connect to windows directory in c#?

2 Answers   HP, nTech Solutions,


How to use nullable types in .net?

0 Answers  


can we access main() using objects?

1 Answers   ssinformatics,


Explain the three services model (three-tier application).

3 Answers   4Cplus,


Explain the difference between “constant” and “read-only” variables used in c#?

0 Answers  


What is unsigned int?

0 Answers  


How do I type a whitespace character?

0 Answers  


Why is .net so popular?

0 Answers  


Is it possible to inline assembly or il in c# code?

0 Answers  


What is jagged array in c#?

0 Answers  


So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process ?

1 Answers  


code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

0 Answers  


Categories