views:

176

answers:

3

Possible Duplicate:
Should C# include multiple inheritance?

One of my friend asked me the question i.e.Why C# doen't support multiple inheritance

+1  A: 

Using interfaces is more flexible and eliminates the ambiguity of multiple inheritance.

Further details, HERE.

thelost
Since interfaces are a subset of multiple inheritance, I'm not sure how you conclude that they are more flexible.
Marcelo Cantos
how can it be more flexible? inheriting from a class is nothing like inheriting from a interface, the interface only defines a contract without actual functionality/code-reuse
Ion Todirel
+1  A: 

Multiple inheritance complicates the language and its implementation. I suspect the designers decided that the gains weren't worth the pains.

Marcelo Cantos
+1  A: 

C#, like Java supports a way to deal with multiple inheritance by allowing a class to implement multiple Interfaces. Its not quite multiple inheritance but it can accomplish what you want to get done.

DJTripleThreat
Interestingly, there is a version of Eiffel for .Net that uses CLR interfaces and delegates to implement Eiffel's version if Multiple Inheritance.
Kramii