0

Is multiple inheritance possible in C#?

Check the code below, I got this code in some tutorials, there he said by using this technique we can implement multiple inheritance using interfaces. But without using interfaces also this gives the same output. So can you please explain me..... What is an interface? what is the use of interfaces? How we can implement multiple inheritance of classes in C#? https://code.sololearn.com/c3UJUEYBR0Za

6th Jan 2019, 7:19 AM
Yallappa Bestha
Yallappa Bestha - avatar
1 Answer
+ 4
Multiple inheritance is still not supported in C#. What you are doing here is implementing multiple interfaces which is allowed, but that's not multiple inheritance.
6th Jan 2019, 8:10 AM
dρlÏ…Ń•ÏlÏ…Ń•
dρlÏ…Ń•ÏlÏ…Ń• - avatar