• 2022-06-07
    下面哪个程序变量age的定义是正确的()
    A: public class Employee{ public void show(){ System.out.println(age); } public int age; }
    B: public class Employee{ public void show(){ System.out.println(age); int age = 20; } }
    C: public class Employee{ public void show(){ System.out.println(age); } }
  • 举一反三