using System;interface IMyinterface1{ void display(); }interface IMyinterface2{ void display();}class trial:IMyinterface1,IMyinterface2 //interface implemented{ public void display() //Method belongs to class trial { Console.WriteLine("Method from class trial"); } void IMyinterface1.display() //explicit member implementation { Console.WriteLine("Method from Interface - IMyinterface1"); } void IMyinterface2.display() //explicit member implementation { Console.WriteLine("Method from Interface - IMyinterface2"); }}class sample{ public static void Main() { IMyinterface1 i1 = new trial(); //creating reference to interface i1.display(); //calling interface method IMyinterface2 i2 = new trial(); //creating reference to interface i2.display(); //calling interface method trial t = new trial(); t.display(); }}