package interfacefeb18;
interface MyInterface1
{
public void method1();
}
interface MyInterface2
{
public void disp1();
}
class XYZ implements MyInterface1
{
public void method1()
{
System.out.println("implementation of method1");
}
}
class ABC implements MyInterface1,MyInterface2
{
public void method1()
{
System.out.println("implementation of method1");
}
public void disp1()
{
System.out.println("implementation of disp1");
}
}
public class InterfaceFeb18 {
public static void main(String[] args) {
ABC a1 = new ABC();
a1.disp1();
}