If we inherit a class do the private variables also get
inherited ?
Answer Posted / ashwini chavan
yes they are inherited, but cannot be accessible.because
when we inherite the class then all data member and function
member of the base class are accesed in the derive class
attomaticaly.but private specifier is accesible only it's
own class out side class can't acces that private member
when we try it then we got error
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the Usage of web.config
What are the types of serialization?
What is string [] args in c#?
What is singleordefault?
Name the property of the textbox which cannot be changed at runtime?
What is console used for?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
What is the advantage of generics in c#?
What is hashmap in c#?
Is null == null c#?
What is the interface in c#?
Are c# references the same as c++ references?
What is single dimensional array in c#?
What is msil in c#?
Does c# support multilevel inheritance?