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 field and variable in c#?
What is the difference between dataset and datatable in c#?
What is nameof c#?
Explain about ODP.net
Can struct inherit from class c#?
Is arraylist generic in c#?
What are generic types?
What is list array in c#?
Is c# or c++ better for games?
What is public or shared assemblies ?
What is get set in c#?
What is the difference between out and ref in c#?
Can properties be private in c#?
How many types of namespaces available in version4?
Can abstract class have constructor?