QUESTION 21자격증/OCJP_ExamB2018. 7. 10. 15:21
Table of Contents
반응형
QUESTION 21
Given:
abstract public class Employee
{
protected abstract double getSalesAmount();
public double getCommision() {
return getSalesAmount() * 0.15;
}
}
class Sales extends Employee {
17. // insert method here }
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; }
Solution : BD
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 23 (0) | 2018.07.10 |
---|---|
QUESTION 22 (0) | 2018.07.10 |
QUESTION 20 (0) | 2018.07.09 |
QUESTION 19 (0) | 2018.07.09 |
QUESTION 18 (0) | 2018.07.09 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상