public class interfacetest {
public static void main(String[] args)
{
Myclass myclass = new Myclass ();
myclass.output();
myclass.output2();
myclass.output3();
}
}
interface MyInterface
{
public void output();
}
interface MyInterface2
{
public void output2();
}
class MyClass2
{
public void output3()
{
System.out.println("output3");
}
}
class Myclass extends MyClass2 implements MyInterface , MyInterface2
{
public void output()
{
System.out.println("output");
}
public void output2()
{
System.out.println("output2");
}
}