When you inherit a protected class-level variable, who is
it available to?

Answer Posted / raja chandrasekaran

Protected class level variables can be accessed with in the
same class and accessed by the derived classes.Derived
classes can be in different assembly also. Even the
variables are private, it will be derived into the child
class. But the thing is, it is not accessible due to its
protection level.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is out int in c#?

656


What is a custom attribute?

653


What is difference between new and override in c#?

627


How to implement singleton design pattern in c#?

660


How can you reference current thread of the method ?

706


What is ioc containers c#?

649


How many aware interfaces are there?

635


What is the use of readkey in c#?

714


What is Fragmentation and its Types?

742


What is static classes in c#?

707


What is a collection class in c#?

663


Describe the ways of cleaning up objects in c#.

691


Why we use anonymous methods in c#?

701


What is difference between C# and VB.NET?

755


Explain the term inheritance in C#.

724