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

Why do we use generics in c#?

541


What is a interface in c#?

475


What is a web service in c#?

585


What is .dbml file?

481


How the versioning applies to Assemblies or can you explain version numbers?

568






What does get set mean in c#?

495


How long does it take to get a loop recorder put in?

464


What is the difference between Static, Const and read only?

542


How do you implement thread synchronization in c#?

463


What is entity framework c#?

464


Is collection a data structure?

548


Why do I get a security exception when I try to run my c# app?

552


What is cosole application?

577


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

1686


What is instantiating a class in c#?

484