Possible Duplicate:
Does C# support multiple inheritance?
Does C# support multiple inheritance?
C# does not support multiple inheritance. It does support multiple implementation of interfaces (so your class can uses as many interfaces as it likes, only one base class tho')
In short No, multiple inheritance is not supported.
This is not a problem as inheritance shall always translate to a "is-a" relationship. Objects usually are only of one kind.
On the other side interfaces, that translate to a "behaves like" relationship can be implemented multiple times.
This is not a limitation but rather an advantage to avoid many strange issues like the Diamond Problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With