Editorial / Best Answer
Pendurti
Well C# doesn't support multiple inheritance through classes.
If you want to have multiple inheritance in your program, you need to make use of interfaces. A class cannot inherit from more than one class but a class can inherit from more than one interfaces. So C# supports multiple inheritance through interfaces.
And multiple inheritance and garbage collection can work independent of each other because, in .NET framework, garbage collection is taken care of by CLR. We can also manually invoke garbage collector using gc.collect().
Why can't we use Multiple inheritance and garbage collector parallelly in .net
Editorial / Best Answer
PendurtiProfile Answers by Pendurti Questions by Pendurti
Well C# doesn't support multiple inheritance through classes.