Interface Example
Interface Example
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");
}