A: abstract class G2 extends superClass1,superClass2{...}
B: abstract public class classmates{...}
C: public final class NewClass extends superClass implemnets Interface1{...}
D: public abstract class String{...}
举一反三
- 下列哪个类声明是正确的 ( ) A: A) abstract class G2 extends superClass1, superClass2 … B: B) abstract public class classmates… C: C) public final class NewClass extends superClass implemnets Interfacel… D: D) public abstract class String…
- 给定代码如下: public abstract interface Frobnicate { public void twiddle(String s); } 以下哪个类是正确的?(). A: public abstract class Frob implements Frobnicate { public abstract void twiddle(String s) { } } B: public abstract class Frob implements Frobnicate { } C: public class Frob extends Frobnicate { public void twiddle(Integer i) { } } D: public class Frob implements Frobnicate { public void twiddle(Integer i) { } }
- 下面声明正确的是( )。 A: abstract final class Student{} B: public abstract class Student{} C: class Student extends Person,Parent{} D: private class Person{}
- 下面哪个对类的声明是错误的?( ) A: public class A{ } B: final class A { } C: abstract class A implements D, E { } D: class A extends B, C { }
- 以下抽象类的定义中,错误的是? A: abstract class Demo1{} B: abstract class Demo2{ public abstract String fun(String a); } C: abstract class Demo3{ public String fun(){ return \ D: abstract class Demo4{ public static final String CZBK = \高等教育 \
内容
- 0
下面哪个对类的声明是错误的?() A: public class A{<br/>} B: final class A{ } C: class A<br/>extends B, C { } D: abstract class A<br/>implements B, C { }
- 1
以下抽象类的定义中,错误的是?() A: abstract class Demo1{} B: abstract class Demo2{ public abstract String fun(String a); } C: abstract class Demo3{ public String fun(){ return "CZBK"; } } D: abstract class Demo4{ public static final String CZBK = "传智播客"; abstract void fun(){} }
- 2
以下抽象类的定义中,错误的是?() A: abstract class Demo1{ } B: abstract class Demo2{ public abstract String fun(String a); } C: abstract class Demo3{ public String fun(){ return "abc"; } } D: abstract class Demo4{ public static final String str = "abcde"; abstract void fun(){} }
- 3
下列哪个类声明是正确的 A: abstract final class HI{•••} B: abstract private move(){•••} C: protected private number{•••} D: public abstract class Car{•••}
- 4
下列哪个类声明是正确的?( ) A: abstract final class Plant { } B: abstract private Sea() { } C: protected private number; D: public abstract class Car { }