Are private class-level variables inherited?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is var c#?

703


What is semaphore in c#?

731


How do you use nullable?

702


What do you mean by winforms in c#?

719


What is event delegate in c#?

854


What is token in c#?

783


What are the concepts of dispose method?

713


What is stringbuilder c#?

734


If I return out of a try/finally in c#, does the code in the finally-clause run?

786


Explain 'structure padding'?

949


how background thread access to ui control?

816


What is the relationship between a process, application domain, and application?

755


What is difference between private and protected in c#?

701


Is c# a backend language?

770


What is method overriding in c#

800