您可以在第几行的“?”位置上添加static关键字? 1 public class Test { 2 private int age; 3 4 public ? int square(int n) { 5 return n * n; 6 } 7 8 public ? int getAge() { 9 } 10}

A.4行 B.8行 C.4和8行都可以 D.都不行

时间:2024-04-02 17:58:20

相似题目

推荐题目