Does C# support multiple inheritance?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dinkar ChavhanRank #1,132 · 1.6K reputationPosted Apr 21, 2011, 9:13 PM EDT
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
{
}
Dinesh BeniwalRank #9 · 64K reputationPosted Apr 21, 2011, 9:15 PM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 22, 2011, 1:13 AM EDT