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

4. Describe the process when we send a request URL? And who is responsible for that?

0 Answers   Mphasis,


What is concrete class in c# with example?

0 Answers  


What is the use of system.environment class in c#.net?

0 Answers  


What is c# most used for?

0 Answers  


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

0 Answers  


Explain how to use an extender provider in the project.

0 Answers  


What is anonymous types in c#?

0 Answers  


Why we use get and set method in c#?

0 Answers  


What's the implicit name of the parameter that gets passed into the set method/property of a class?

0 Answers  


Define a strong name in .net?

0 Answers  


What is a generic method?

0 Answers  


What is base class in c#?

0 Answers  


Categories