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 is private constructor c#?
How many types of interface are there in c#?
What is array and types of array in c#?
Is stringbuilder better than string?
What is generic delegates in c#?
What is an assembly qualified name? Is it a filename? How is it different?
Define c# delegate?
How many classes are there in classification?
What is nameof c#?
Can you declare struct members as protected?
What is the difference between string keyword and system.string class?
Is array value type in c#?
What is lock in c#?
Why do we need serialization?
Why singleton pattern is used in c#?