Software DevelopmentSoftware Fundamentals

Interface Inheritance

Adeolabi August 05, 2026 6 min read
Interface Inheritance
Interface inheritance in C# allows one interface to inherit from another interface. This means the derived interface will include all the members (methods, properties, events) of the base interface, and it can also add new members. It’s like a child inheriting traits from a parent but also having its own unique traits.

public class SportsCar : ISportsCar
{
    public void Start()
    {
        Console.WriteLine("Sports car started.");
    }

    public void Stop()
    {
        Console.WriteLine("Sports car stopped.");
    }

    public string GetFuelType()
    {
        return "Premium Unleaded";
    }

    public void Accelerate()
    {
        Console.WriteLine("Sports car accelerating.");
    }

    public void Brake()
    {
        Console.WriteLine("Sports car braking.");
    }

    public void TurboBoost()
    {
        Console.WriteLine("Sports car turbo boost activated!");
    }
}
  • Interface Inheritance:
  • ICar inherits from IVehicle, so it includes Start(), Stop(), and GetFuelType().
  • ISportsCar inherits from ICar, so it includes all methods from ICar and IVehicle, plus its own TurboBoost() method.
  • Implementation:
  • The SportsCar class implements ISportsCar, so it must provide implementations for all methods in IVehicle, ICar, and ISportsCar.