Default Interface Method

An interface member with an implementation inherited by implementing types.

What is Default Interface Method in C#?

Default Interface Method — An interface member with an implementation inherited by implementing types.

interface IPrintable
{
    string Format()
    {
        return "Ready";
    }
}

class Ticket : IPrintable
{
}

Level: Journeyman · More C# terms at this level

Updated