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

Does the system.exception class have any cool features?

0 Answers  


What is the advantage of constructor?

0 Answers  


What is the use of parse in c#?

0 Answers  


What is the difference between Java and .NET garbage collectors?

0 Answers   BirlaSoft,


What is attribute and reflection in c#?

0 Answers  






Does c# provide copy constructor?

0 Answers  


Practcle scenario where I can use abstract class and where I can use Interface

1 Answers   Jeevan Technologies,


what is uniary operators and binary operators and what is the difference

1 Answers   Protech,


What is xml comments in c#?

0 Answers  


What is an abstract class c#?

0 Answers  


What is the difference between User controls and Custom Controls?

0 Answers   Accenture,


Is int an object in c#?

0 Answers  


Categories