interface First
{
public void MyMethod();
}
interface Second
{
public void MyOtherMethod();
}
class Demo implements First,Second
{
public void MyMethod()
{
System.out.println("Some Text");
}
public void MyOtherMethod()
{
System.out.println("Some Other Text");
}
}
class main
{
public static void main(String ar[])
{
Demo myobj= new Demo();
myobj.MyMethod();
myobj.MyOtherMethod();
}
}
OUTPUT
Comments
Post a Comment