How can i implement this constructor?
I tried replacing commissionEmployee = new CommissionEmployee with this but the complier asked me to create another constructor.
public class BasePlusCommissionEmployeeComposition {
private double baseSalary;
private CommissionEmployee commissionEmployee;
// six-argument constructor
public BasePlusCommissionEmployeeComposition( String first, String last,
String ssn, double sales, double rate, double salary) {
// TODO: implement this constructor
commissionEmployee = new CommissionEmployee( first, last, ssn, sales, rate );
setBaseSalary( salary );