下列程序片段中,能通过编译的是()。
A.public abstract class Animal{ public void speak;}
B.public abstract class Animal{ public void speak{);}
C.public class Animal{ pubilc abstract void speak;}
D.public abstract class Animal{ pubile abstract void speak{};}
A.public abstract class Animal{public void speak();}
B.public abstract class Animal{public void speak(){};}
C.public class Animal{pubilc abstract void speak();}
D.public abstract class Animal{pubile abstract void speak(){};}
A.put off
B.consult with
C.take stock of
D.refer to
指出下面哪一项是在抽象类中声明一个抽象方法。()
A.public abstract method();
B.public abstract void method();
C.public void abstract Method();
D.public void method(){abstract;}
A.public final writeLog(String msg)
B.public final abstract void writeLog(String msg)
C.public static final void writeLog(String msg)
D.public static abstract void writeLog(String msg)
A.different cultures
B.different languages
C.different goals
D.different religions