Mid OOP

Can one interface inherit another interface?

  • Yes, interfaces can inherit from other interfaces, forming a hierarchy.

interface IFlyable { void Fly(); }

interface IAdvancedFlyable : IFlyable { void Loop(); }

More from C# Programming Tutorial

All questions for this course