If we inherit a class do the private variables also get
inherited ?

Answers were Sorted based on User's Feedback



If we inherit a class do the private variables also get inherited ?..

Answer / rathika

It will be inherited but cannot be accessible.

Is This Answer Correct ?    12 Yes 1 No

If we inherit a class do the private variables also get inherited ?..

Answer / kishore.a

Private variables are not inherited. Access specifier
Private is mainly mean for the inheritance concept so that
derived classes cannot inherit the private members of base
class..

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More C Sharp Interview Questions

What are scriptable objects?

1 Answers  


What is use of hashtable in c#?

1 Answers  


What is difference between mutable and immutable in c#?

1 Answers  


What are the keywords used to pass parameters to the base class and how do I invoke other constructors.

3 Answers  


How to sort an int array in c#?

1 Answers  


Is c# a technology?

1 Answers  


How can you clean up objects holding resources from within the code?

2 Answers   L&T, Wipro,


What do you know about WM_CHAR message?

1 Answers   C DAC,


How do I make a dll in c#?

1 Answers  


What is array and types of array in c#?

1 Answers  


In C#, explain the difference between overloading and overriding.

1 Answers   Accenture,


What is datareader c#?

1 Answers  


Categories