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 Help Members By Posting Answers For Below Questions

What is private constructor c#?

668


How many types of interface are there in c#?

677


What is array and types of array in c#?

644


Is stringbuilder better than string?

691


What is generic delegates in c#?

702






What is an assembly qualified name? Is it a filename? How is it different?

667


Define c# delegate?

729


How many classes are there in classification?

695


What is nameof c#?

669


Can you declare struct members as protected?

650


What is the difference between string keyword and system.string class?

697


Is array value type in c#?

768


What is lock in c#?

642


Why do we need serialization?

640


Why singleton pattern is used in c#?

682