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 streamreader/streamwriter class?
Why objects are stored in heap in c#?
Is array a collection c#?
What is binary search tree in data structure?
Which sorting algorithm is best?
How can you access a private method of a class?
Can a string be null c#?
What is the use of properties window?
What is system console writeline in c#?
When do you generally use a class over a struct?
When can a derived class override a base class member?
What is class method c#?
Why do we need collections in c#?
What is managed code?
What is difference between ilist and list in c#?