Hi
Can we inherit multiple interfaces in C#?
Can we inherit multiple interfaces in C#
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
VulpesRank #55 · 29.2K reputationPosted Aug 13, 2012, 2:06 AM EDT
Nattudurai EswaramurthyRank #5,536 · 296 reputationPosted Aug 13, 2012, 2:40 AM EDT
Actually Multiple Inheritance is not possible in C#.net. But u can Achieve it by using "interfaces"
Example:
Public Class A :Class B,IConvertable,Icomparable
{
// Implementation
}
Jignesh TrivediRank #16 · 50.3K reputationPosted Aug 13, 2012, 5:05 AM EDT
Multiple Inheritance is not possible with c#, but you can implement you class by multiple interface not inherit. There are two different terms implement and inherit
http://www.c-sharpcorner.com/uploadfile/cbreakspear/multipleinheritance11082005004843am/multipleinheritance.aspx
http://www.codeproject.com/Articles/10072/Simulated-Multiple-Inheritance-Pattern-for-C