You should add the static keyword in the place of ? in Line ________ in the following code:
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() {return age;
9 }
10}
发布于 2021-02-15 03:24:24
【单选题】 A in line 4 B in line 8 C in both line 4 and line 8 D none