If we inherit a class do the private variables also get
inherited ?
Answer Posted / javed khan
No, We cant inherit private member of base class. We got
error like " member is inaccessible due to its protection
level."
| Is This Answer Correct ? | 7 Yes | 13 No |
Post New Answer View All Answers
What is the difference between string and stringbuilder in c#?
Does c# support try-catch-finally blocks?
How to add a readonly property in c#.net
What is the difference between system.text.stringbuilder and system.string?
What is the difference between structure and class in c#?
What is the use of list in c#?
How are Windows programs different from normal C-programs?
What is ienumerable <> in c#?
What is lock statement in C#?
Explain the differences between static, void and public in c#?
How do you sort an array in c#?
Explain the difference between const and static read-only?
Explain the difference between object type and dynamic type variables in c#?
What is difference between encapsulation and abstraction in c#?
What is data annotation in c#?