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 |
Can we assign null value to integer?
What is strong name in c# and how can we use it?
Define delegation in .net?
What are sorted lists?
Illustrate serialization?
What is .dbml file?
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
Explain the difference between a struct and a class?
What is code verification?
If you define integer variable and a object variable and a structure then how those will be plotted in memory ?
Is XML case-sensitive?
When should you use generics?