QUESTION 23자격증/OCJP_ExamD2018. 8. 4. 16:42
Table of Contents
반응형
QUESTION 23Given:class Employee {String name;double baseSalary;Employee(String name, double baseSalary) {this.name = name;this.baseSalary = baseSalary;}}public class SalesPerson extends Employee {double commission;public SalesPerson(String name, double baseSalary, double commission) {// insert code here Line 13}}Which two code fragments, inserted independently at line 13, will compile? (Choose two.)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);Solution : AE
반응형
'자격증 > OCJP_ExamD' 카테고리의 다른 글
QUESTION 25 (0) | 2018.08.04 |
---|---|
QUESTION 24 (0) | 2018.08.04 |
QUESTION 22 (0) | 2018.08.04 |
QUESTION 21 (0) | 2018.08.04 |
QUESTION 20 (0) | 2018.08.03 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상