interface A //定义接口
{
public String name=null;
public void print();
public void tell();
}
abstract class B
{
public abstract void say(); //定义一个抽象类
}
class X extends B implements A //子类同时实现接口
{
public void say()
{
System.out.print("love");
}
public void print()
{
System.out.print("Aaron"+"\t");
}
public void tell()
{
System.out.print("\t"+"Crystal");
}
}
public class test35 {
public static void main(String args[])
{
X x=new X();
x.print();
x.say();
x.tell();
}
}