Are private class-level variables inherited?
Answers were Sorted based on User's Feedback
Answer / venu gopal
Yes, but they are not accessible, so looking at it you can
honestly say that they are not inherited. But they are.
Is This Answer Correct ? | 18 Yes | 0 No |
Answer / 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 |
Answer / kirti
Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.
Is This Answer Correct ? | 0 Yes | 0 No |
what are wrapper classes?
Can arraylist hold primitive types?
how to add datarow to datatable
What is inheritance c#?
What is shared inheritance
How to transpose multi-dimensional array?
How does bitwise xor work?
What is string pool in c#?
What is dll in vb.net?
What is different between Boxing and Unboxing?
Why do we use anonymous method in c#?
why C++ Partial Object Oriented Programming Language and C# and Java Fully Object Oriented Language
11 Answers 3i Infotech, Alexa, Assyst, Naresh i Technologies, TCS,