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 polymorphism c# example?

684


Can we extend static class in c#?

682


What are reflections in c#?

697


Describe the types of comments in c#?

698


What is difference between assembly and namespace?

663


What is a method signature?

754


Why do we need collections in c#?

658


What is the default value of datetime in c#?

710


What is the size of a decimal?

821


What is null in database?

662


Why c# is type safe?

717


Why we use get set property in c#?

708


How do you create dlls in .NET

795


What are types of constructor?

686


To allow an element to be accessed using a unique key which .NET collection class is used ?

844