123456789101112131415



Question 1: 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
}
}

Which one code fragment, inserted independently at line 13, will compile?

1. super(name, baseSalary);
2. this.commission = commission;
3. super();
this.commission = commission;
4. super(name, baseSalary, commission);