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 the advantage of constructor?
How do I count the length of a string in c#?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
may we achieve polyphormsm through overloading a funtion?Is it right or wrong concept because i read polyphormism can be achieved through overloading?plz help me thnks
What is method and function in c#?
What are the concepts of dispose method?
Is .net and c# the same?
What is asenumerable in c#?
What is difference between dynamic and var in c#?
What is the advantage of dependency injection?
When should we use sealed class in c#?
Is c sharp and c# are same?