下面哪条语句把方法声明为抽象的公共方法?( )。
A: public abstract void method(){}
B: public void method() extends abstract
C: public abstract method()
D: public abstract void method()
A: public abstract void method(){}
B: public void method() extends abstract
C: public abstract method()
D: public abstract void method()
举一反三
- 下面哪条语句把方法声明为抽象的公共方法? A: public abstract method(); B: public abstract void method(); C: public abstract void method(){} D: public void method() extends abstract;
- 49 下面哪条语句把方法声明为抽象的公共方法?() A: public abstract method(); B: public abstract void method(); C: public abstract void method(){} D: public void method() extends abstract;
- 【单选题】下面哪条语句把方法声明为抽象的公共方法? ( ) A: public abstract method(); B: public abstract void method(); C: public abstract void method(){} D: public void method() extends abstract;
- 把方法声明为抽象的公共方法是()? A: public abstract method(); B: public abstract void method(); C: public abstract void method(){} D: public void method()extends abstract
- 补全以下程序代码public abstract class MyClass { public int constInt = 5; 请在此处补全代码 public void method() { }} A: public abstract void method(int a); B: constInt = constInt + 5; C: public int method(); D: public abstract void anotherMethod() {}