Collections and Generics

© examsiri.com
Question : 26 of 53
 
Marks: +1, -0
Given:
1. abstract public class Employee {
2.   protected abstract double getSalesAmount();
3.   public double getCommision() {
4.    return getSalesAmount() * 0.15;
5.   }
6. }
7. class Sales extends Employee {
8.   /* insert method here*/
9. }

Which two methods, inserted independently at line 8, correctly complete the Sales class? (Choose two.)
Go to Question: