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
How Is The Dll Hell Problem Solved In .net?
Is array a collection c#?
What is the resgen.exe tool used for?
How do I declare inout arguments in c#?
How does inheritance work in c#?
How do I type a whitespace character?
What is dataadapter c#?
What do you mean by directing?
What is access modifier in c#?
Is inheritance possible in c sharp?
Is list a collection c#?
what is difference between destruct or and garbage collection ?
What is inumerable?
Can you have parameters for static constructors?
Define an escape sequence, name few strings in escape sequence?