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 |
Is object an int c#?
How to open a new form on button click in Windows forms?
Is int a class in c#?
What are console applications used for?
What is difference between ienumerable and list?
What is the solution if you need to manipulate sets of items?
What is a console application in c#?
What are anonymous methods ? why these methods are used and in what condition these methods are useful ?
What is the difference between C# 3.5 and C# 4.0?
What is the use of partial methods?
What is the use of "default" and "Using" keyword?
What does return do in for loop?