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
Explain the difference between a sub and a function in c#.
Can struct inherit from class c#?
How big is int16?
What is enum in c#?
What do you mean by the delegate in c#?
What is the difference between virtual and override in c#?
What are the features of c#?
Give 2 scenarios where static constructors can be used?
Explain About CLS?
What is dynamic dispatch?
How Do You Convert A Value-type To A Reference-type?
How does the clr work?
Why we use extension methods in c#?
Is comparator a functional interface?
How do I move from one form to another in c#?