Friday, February 18, 2011

Why C# doesnt support Multiple inheritance

Not just C#, infact complete CLR doesn't support mutiple inheritence. However you can achieve your functionality using interfaces.

There are several reasons for multiple inheritence in not introduced in CLR.
First and foremost, .net allows you to use mutiple languages and each of these language would behave differently on how multiple inheritence works over it. So it was difficult for designers to resolve this issue.
Also mutiple inheritence create lot of complexity in the code.

for more read Why doesn't C# support multiple inheritance?

No comments:

Post a Comment