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 |
Which is faster iqueryable or ienumerable?
If casting fails what type of exception is thrown?
Explain static class members.
What are the commonly used i/o classes?
What is the namespace for datatable in c#?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
Tell me something about Exceptions. What is the common exception class?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
What is an icollection in c#?
Can constructor be protected?
What is the function of the not null constraint?
What are the differences between a class and a struct?