Does C# support multiple inheritance?
Does C# support multiple inheritance?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 22, 2011, 5:13 AM
Dinesh BeniwalPosted Apr 22, 2011, 1:15 AM
Dinkar ChavhanPosted Apr 22, 2011, 1:13 AM
Multiple Inheritance:
C# does not support multiple implementation inheritance A class cannot be derived from more than one class However, a class can be derived from multiple interfaces
Inheritance Usage Example:
Here is a syntax example for using Implementation Inheritance
derivedClass is derived from baseClass
Interface Inheritance example:
derivedClass is now derived from interfaces – InterfaceX, InterfaceY
Similarly a struct can be derived from any number of interfaces
private struct childStruct:InterfaceX, InterfaceY
{
}