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 var c#?
What is semaphore in c#?
How do you use nullable?
What do you mean by winforms in c#?
What is event delegate in c#?
What is token in c#?
What are the concepts of dispose method?
What is stringbuilder c#?
If I return out of a try/finally in c#, does the code in the finally-clause run?
Explain 'structure padding'?
how background thread access to ui control?
What is the relationship between a process, application domain, and application?
What is difference between private and protected in c#?
Is c# a backend language?
What is method overriding in c#