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

Answers were Sorted based on User's Feedback



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

Answer / guest

Classes in the same namespace.

Is This Answer Correct ?    11 Yes 5 No

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

Answer / jothimani

its sub class variable

Is This Answer Correct ?    6 Yes 2 No

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

Answer / prabakar

its subclass variable

Is This Answer Correct ?    4 Yes 3 No

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

Answer / 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

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

Answer / p.sahoo

Protected Class Variables Are Always Inherited in it's
derived classes.
But in the namespace it confused to me because in a
namespace we can set any type of modifiers.

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More C Sharp Interview Questions

What is a copy constructor in c#?

0 Answers  


When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choice or decision based on UML diagram)?

1 Answers  


What is a reference type c#?

0 Answers  


What is out in c#?

0 Answers  


Why do we use lambda expression in c#?

0 Answers  


What is the extension of c# file?

0 Answers  


What is the .NET collection class that allows an element to be accessed using a unique key?

0 Answers   Siebel,


Explain About delegates

0 Answers   TCS,


How Reflection is used and what it's significance ?

0 Answers   HCL,


What is strong data type in c#?

0 Answers  


What is the signature of a method?

0 Answers  


How to find out that the code is written as managed or un-managed code?

0 Answers   Amazon,


Categories