Are private class-level variables inherited?
Answer Posted / duc nguyen
according to "http://www.velocityreviews.com/forums/t130343-question-about-inheritance-of-private-variables.html"
"According to the Java Language Specification, the definition of "inherited"
is such that the data member is available by subclasses. Using this
definition, private members are not inherited, HOWEVER, they are 'there',
that is, instances of the subclass contains the data that is held by the
private member - it is just not exposed by the superclass"
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between abstract and virtual?
What is meant by desktop application?
What is the use of console?
What is sqlconnection in c#?
Difference between abstract classes and interfaces
Explain nullable types in c#?
Different between method overriding and method overloading?
What are the types of serialization?
How do I develop c# apps?
How do you serialize an object?
What is icomparer in c#?
What is razor view in c#?
How does c# generics and c++ templates compare?
What is expandoobject in c#?
What is use of console?