"Basic DIM Example"

interface IExampleInterface {
    int GetAlpha();

    int GetBravo() => 456;
}

class ExampleClass : IExampleInterface {
    public int GetAlpha() => 123;
}

class Program {
    static void Main() {
        IExampleInterface e = new ExampleClass();

        Console.WriteLine(e.GetAlpha()); // Prints '123'
        Console.WriteLine(e.GetBravo()); // Prints '456'
    }
}


Code snippet taken from "Two Decades of C#: A Reference - C# 8".