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
Please explain value types and reference types used in c#?
what is the difference between convert.tostring() and tostring() functions ?
write a program to find the biggest palindrome in the given string
Why do we need abstraction in c#?
Where value types are stored in c#?
What is the difference between the debug class and trace class? Documentation looks the same.
Explain the difference between event and a delegate in c#?
Why static constructor is parameterless in c#?
What is difference between a type and class?
What is difference between list and dictionary in c#?
What is parse method in c#?
What is the property of a class in c#?
How do I enforce const correctness in c#?
What is the use of table aliases?
When should I throw an exception?