• 2022-06-19
    接口A的定义如下,指出下列哪些类实现了该接口______。 Interface A { Int method1 (int i); Int method2 (int j); }
    A: class B implements A { Int method1(){} Int method2(){} }
    B: class B extends A { Int method1(int {} Int method2(int {} }
    C: class B { Int method1(int {} Int method2(int {} }
    D: class B implements A { Int method1(int {} Int method2(int {} }
  • 举一反三