"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 "Complete C# Quick Reference - C# 8".