• 2022-07-02
    如下方法声明中,错误的是()
    A: public void say(){ System.out.print(“Hi”); }
    B: public void say(){ System.out.print(“Hi”); return; }
    C: public int say(){ System.out.print(“Hi”); return; }
    D: public int say(){ System.out.print(“Hi”); return 0; }
  • 举一反三