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 is strong name in c# and how can we use it?
What are strings in c#?
Why do we need interfaces in c#?
List some Advantages of switch-case over if else?
Is vs as c#?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
What is out in c#?
What is string programming language?
How can you sort strings in array that are passed to method as arguments?
How do I edit a dll file?
What framework is used for performance testing/load testing?
What are the steps to make an assembly to public?