Hi
Can we inherit multiple interfaces in C#?
Loading
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.
Jignesh TrivediPosted Aug 13, 2012, 9:05 AM
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
Nattudurai EswaramurthyPosted Aug 13, 2012, 6:40 AM
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
}
VulpesPosted Aug 13, 2012, 6:06 AM