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 interface and multiple interface?
What namespace is list in c#?
What is the difference between CONST and READONLY?
Which of the following API is used to hide a window?
Explain 'structure padding'?
What do you mean by stack and heap in c#?
What is Named parameter in C#?
What is lastindexof c#?
What is the difference between dll and lib?
What is returned if you pass the value 12.34 to the parsefloat () function?
What is the difference between static class and sealed class in c#?
What are the types of access modifiers?
Why ref is used in c#?
List down the reason behind the usage of c# language.
What is the use of protected in c#?