interface showbale
{
void show();
static void print()
{
System.out.println("Hello World!");
}
}
interface printable
{
void print();
}
class A221 implements showbale,printable
{
public void show()
{
System.out.println("Hello World!");
}
public void print()
{
System.out.println("Hello World!");
}
public static void main(String[] args)
{
A221 a2=new A221();
a2.print();
a2.show();
}
}
No comments:
Post a Comment