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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the delegate in c#?

570


What is list collection in c#?

631


What is boolean method?

598


What is serialization and deserialization in c# with example?

548


Which attribute is used in order that the method can be used as webservice?

601






How many types of methods are there in c#?

609


Explain About delegates

675


If I return out of a try/finally in c#, does the code in the finally-clause run?

630


What is the difference between system.string and system.text.stringbuilder classes?

594


Can we overload the main method in c#?

552


Why do we use classes?

576


Explain About stateless and state full web service

647


Why do we need indexer in c#?

655


Can you pass value types by reference to a method?

604


What are the 4 pillars of any object oriented programming language?

539