Interface

A contract describing behavior that implementing classes agree to provide.

What is Interface in C#?

Interface — A contract describing behavior that implementing classes agree to provide.

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

class Ticket : IPrintable
{
}

Level: Journeyman · More C# terms at this level

Updated

In other subjects