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 a Managed Code??

538


What is sqldatareader c#?

485


What is transparent caching with aop ?

622


Define Abstract Class in C#

540


What are different types of Delegates in C#?

561






Why do we need constructors?

493


What is namespace in oops?

489


Define a partial class?

500


What are reflections in c#?

489


Can mvc be used for desktop applications?

477


Why extension method is static?

467


What is difference between array and collection?

466


Explain the feature of c# language?

502


What is interface c#?

455


Is an array an object c#?

537