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 |
Why is c# good for games?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
What is a nullreferenceexception?
What are the valid parameter types we can pass in an Indexer ?
Why do we need delegates?
What does the dispose method do with the connection object?
What does firstordefault mean in c#?
Explain ACID rule of thumb for transactions.
Describe the process of “exception handling implementation” in c#?
in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?
Can we inherit a private class in chsarp? how? explain(with code) ?
Why do we use inheritance in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)