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 is default access specifier for class in c#?
What is difference between virtual and override in c#?
Why do we use overloading in c#?
What is difference between ilist and list?
Define acid rule of thumb for transactions in c#.
What are the steps to create an assembly and add it to the gac?
Explain streamreader/streamwriter class?
What are the benefits of using the aggregate method in linq?
Why is it not a good idea to use empty destructors?
What is method in c#?
Why do canadians say zed?
Does main have to be static c#?
how to stored and retrive video in Sql server using asp.net c#......?
How do namespaces work?
what is a static constructor?