If we inherit a class do the private variables also get
inherited ?
Answer Posted / 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 View All Answers
What sort algorithm does c# use?
Can we override main method in c#?
What is the difference between ref and out parameters in c#?
What are boxing and unboxing?
How do you escape a character?
Give examples for reference types?
Is ram a heap?
Are arraylist faster or arrays?
What is parallel foreach c#?
What is difference between var dynamic and object in c#?
What is c-sharp (c#)?
What is lazy loading and eager loading in c#?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
What is monitor in C#?
How do I create a new form in c#?