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
Why do we Need of static class in c#?
What is difference between encapsulation and abstraction in c#?
What is returned if you pass the value 12.34 to the parsefloat () function?
What is strong name assembly?
What is check/uncheck?
Why we use get set in c#?
Is post back in c#?
Who is a accessibility modifier “protected internal†available to ?
How long has c# been around?
Why is it not a good idea to use empty destructors?
Does c# provide copy constructor?
What are the differences between value types and reference types?
How do you define a predicate?
In .NET how can you solve the DLL Hell problem?
How are Windows programs different from normal C-programs?