// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class MIIcov {
    public static void main(String[] args) {
        I1 x = new C();
        x.m();
        I2 y = new C();
        y.m();
        C z = new C();
        z.m();
    }
}

interface I1 {
    public R1 m();
}

interface I2 {
    public R2 m();
}

class C implements I1, I2 {
    public R3 m() {
        System.out.println("The one and only m");
        return null;
    }
}

interface R1 {
}

interface R2 {
}

interface R3 extends R1, R2 {
}
