interface ifa
{
public void amethod();
}
interface ifb
{
public void bmethod();
}
interface ifc extends ifa, ifb
{
public void cmethod();
}
public class testif implements ifc
{
public static void main(String args[])
{
testif tif = new testif();
tif.amethod();
tif.bmethod();
tif.cmethod();
}
public void amethod()
{
System.out.println("amethod called!");
}
public void bmethod()
{
System.out.println("bmethod called!");
}
public void cmethod()
{
System.out.println("cmethod called!");
}
}
class a
{}
class b
{}
class c extends a, b
{}