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
How do I create a new form in c#?
To whom a method is accesssed if it is marked as protected internal ?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
Which is faster hashtable or dictionary?
What is concrete method in c#?
What are the different types of delegation?
What is the difference between static class and abstract class in c#?
What is xaml in c#?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
When should we use delegates in c#?
What is a nullreferenceexception and how do I fix it?
What does private void mean in c#?
Is string a class in c#?
What are the benefits of using generics in c#?
Why is static constructor called first?