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 the difference between proc. Sent by val and by sub?

0 Answers  


Differentiate between object pooling and connection pooling in c#?

0 Answers  


What is the difference between interface and abstract class ?

2 Answers   Basware, BITS,


What is transparent caching with aop ?

0 Answers  


What is string programming language?

0 Answers  






What is default constructor in c#?

0 Answers  


Define an abstract class?

0 Answers  


What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NET Framework.

5 Answers  


Can abstract class be sealed?

0 Answers  


What does string format do?

0 Answers  


What is the use of static in c#?

0 Answers  


Can we override interface method?

0 Answers  


Categories