Why multiple Inheritence is not used in C#?
Answer Posted / mayur teli
There is the classic diamond problem encountered in multiple inheritance, in which class D inherits from both B and C, which both inherit from A.
A
/ \
B C
\ /
D
So which copy of A does D get? The one from B, the one from C? Both? This way various languages resolve this problems is discussed here:
http://en.wikipedia.org/wiki/Diamond_problem
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the properties of c#?
What is garbage collection? How to force garbage collector to run?
How long does it take to learn c# programming?
What is the use of expression tree in c#?
Why we need get set property in c#?
What is type checking in c#?
Explain how can you clean up objects holding resources from within the code?
How do you access a constant field declared in a class?
What namespace is list in c#?
What is the difference between convert and parse in c#?
What is oledbconnection c#?
Is c# pass by value?
What is data reader in c#?
What is xml serialization and deserialization in c#?
How many constructors can a class have c#?