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 platform independence"?
What is a verbatim string literal and why do we use it?
What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?
can you declare an override method to be static if the original method is not static?
How the versioning applies to Assemblies or can you explain version numbers?
Why is c# used?
What are reflections in c#?
what are pointer types in c#
Why main method is static in c#?
What is the difference between string and stringbuilder in c#?
What is difference between const and static in c#?
What is the interface in c#?
What is the difference between icomparer and icomparable in c#?
What is instantiating a class in c#?
How to use nullable types in .net?