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 expression tree in c#?
What is dynamic object in c#?
Are constructors inherited c#?
What do you mean by “finalize” and “finally” methods in c#?
Is c# or c++ better for games?
What is jit? What are the different types of jit?
Can bool be null c#?
What is stringwriter c#?
What does console readline do?
What is the difference between dynamic and var in c#?
What is a scope in c#?
How jit (just in time) works?
What is a interface in c#?
Explain About Virtual functions and their use.
What is uint c#?