• 2022-06-07
    下列关于Test类的定义代码中,正确的是______。
    A: class Test implements Runnable { public void run() {} public void someMethod() {} }
    B: class Test implements Runnable { public void run(); }
    C: class Test implements Runnable { public void someMethod(); }
    D: class Test implements Runnable { public void someMethod() {} }
  • 举一反三