Mid From PDF OOP C# OOP

Can you inherit multiple abstract classes?

  • No, C# does not allow multiple class inheritance.
  • Use interfaces as a workaround.
interface IFlyable { void Fly(); }
interface IDriveable { void Drive(); }
class FlyingCar : IFlyable, IDriveable { public void Fly() {} public

void Drive() {} }

Q&A

More from C# Programming Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details