interface A
{
int i = 20;
void showi()
{}
}
interface B
{
int y = 11;
void showy()
{}
}
class Test implements x,y
{
int z = 33;
void showz()
{}
}
void display()
{
System.out.println(" " + (x+y+z));
}
class Test1{
public static void main(String [] args)
{
Test t = new Test();
t.display();
}
}
{
int i = 20;
void showi()
{}
}
interface B
{
int y = 11;
void showy()
{}
}
class Test implements x,y
{
int z = 33;
void showz()
{}
}
void display()
{
System.out.println(" " + (x+y+z));
}
class Test1{
public static void main(String [] args)
{
Test t = new Test();
t.display();
}
}
1, How to define an interface?
2, How to implement an interface?
1, How to define an interface?
2, How to implement an interface?