• 2022-06-06
    下列类定义中属于合法的抽象类的定义的是()
    A: A.abstract Animal{abstract void growl()}
    B: B.class abstract Animal{abstract void growl()}
    C: C.abstract class Animal{abstract void growl()}
    D: D.abstract class Animal{ abstract void growl(){System.out.println("growl")};}
  • 举一反三