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
What is polymorphism c# example?
Can we extend static class in c#?
What are reflections in c#?
Describe the types of comments in c#?
What is difference between assembly and namespace?
What is a method signature?
Why do we need collections in c#?
What is the default value of datetime in c#?
What is the size of a decimal?
What is null in database?
Why c# is type safe?
Why we use get set property in c#?
How do you create dlls in .NET
What are types of constructor?
To allow an element to be accessed using a unique key which .NET collection class is used ?