interface G1 {// method declarationvoid mymethod();}interface G2 {// method declarationvoid mymethod();}// Geeks implements both// G1 and G2 interfaceclass Geeks : G1, G2{// Here mymethod belongs to// G1 interfacevoid G1.mymethod(){Console.WriteLine("GeeksforGeeks");}// Here mymethod belongs to// G2 interfacevoid G2.mymethod(){Console.WriteLine("GeeksforGeeks");}}
Loading

