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

Why would you use a class property in c#?

685


You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?

721


How do you sort an array in c#?

682


What is Delegate and what is it used for ?

770


what is IEquatable

742


How to Show Message box in Metro Style App?

772


what is the default access for a class

773


Is predicate a functional interface?

701


Can derived classes have greater accessibility than their base types?

737


What does return do in for loop?

669


How main method is called in c#?

694


Explain streamreader/streamwriter class?

713


What is deferred execution?

653


What is dictionary collection in c#?

678


Is typeof c#?

726