static void Main(string[] args) { MyClass myClass = new MyClass(); I1 i1 = myClass; I2 i2 = myClass; i1.Write(); i2.Write(); Write(myClass); }