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 is a c sharp?

0 Answers  


what is the meaning of Object lifetime in OOPS

0 Answers   HCL,


What is static noise?

0 Answers  


What r collections c sharp?

3 Answers  


Can we inherit a private class in chsarp? how? explain(with code) ?

4 Answers   Techno Labs,


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

0 Answers  


What is COM Interoperability?

0 Answers   DELL,


Is c# code is managed or unmanaged code?

0 Answers  


What is parseexact c#?

0 Answers  


What are the advantages of using partial classes?

0 Answers  


Can you specify an access modifier for an enumeration?

0 Answers  


What is the difference between field and variable in c#?

0 Answers  


Categories