interface A
{
public void print1();
}
interface B extends A
{
public void print2();
}
interface C extends B
{
public void print3();
}
class X implements C
{
public void print1()
{
System.out.print("Aaron"+"\t");
}
public void print2()
{
System.out.print("love"+"\t");
}
public void print3()
{
System.out.print("Crystal");
}
}
public class test36 {
public static void main(String args[])
{
X x=new X();
x.print1();
x.print2();
x.print3();
}
}
作者:xuejiawei123 发表于2013-7-16 11:12:10 原文链接
阅读:35 评论:0 查看评论