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

How does the lifecycle of Windows services differ from Standard EXE?

0 Answers   Siebel Systems,


What is Wrapper class in dot net?

0 Answers   HCL,


What is default constructor c#?

0 Answers  


What do u mean by delegation of authority?

0 Answers  


Explain the steps to create satellite assembly?

0 Answers  






What is the difference between method and constructor in c#?

0 Answers  


Where is c# compiler located?

0 Answers  


Can a class be protected in c#?

0 Answers  


what is the purpose of Interfaces?

7 Answers   HCL,


How To Maintain Transaction In C#?

1 Answers   Phoenix Technologies,


Can an exception be thrown from a catch block?

0 Answers   Alcatel-Lucent,


How to handle exceptions that are raised in a component?

0 Answers   Alcatel-Lucent,


Categories