super
举一反三
- Which two code fragments, inserted independently at line 12, will compile?() A: super(name, baseSalary); B: this.commission=commission; C: super();this.commission=commission; D: this.commission = commission;super(); E: super(name, baseSalary);this.commission=commission; F: this.commission=commission;super(name, baseSalary); G: super(name, baseSalary, commission);
- Super A: Super B: Idon’t C: I D: Admin
- super
- When the mother said over the phone“Super!” and“Just super!” her tone was .
- 如果子类构造器中没有super()出现,那么编译器则会默认加上()构造器。 A: super B: this() C: super() D: this