阿摩線上測驗 登入

試題詳解

試卷:104年 - SCJP 51-100#99391 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:104年 - SCJP 51-100#99391

年份:104年

科目:OJCP(SCJP)

複選題
67. Given: 
10. abstract public class Employee { 
11. protected abstract double getSalesAmount(); 
12. public double getCommision() { 
13. return getSalesAmount() * 0.15;
 14. } 
15. }
 16. class Sales extends Employee { 
17. //insert method here 
18. }
 Which two methods, inserted independently at line 17, correctly complete the Sales class? (Choose two.)
(A) double getSalesAmount() { return 1230.45; }
(B) public double getSalesAmount() { return 1230.45; }
(C) private double getSalesAmount() { return 1230.45; }
(D) protected double getSalesAmount() { return 1230.45; }
正確答案:登入後查看