the private setter method is not used

One place that you can use them in, is your constructor:

public Employee_Kubik(String n, double sala, int y, double sale){
    name = n;
    setSalary(sala);
    setSales(sale);
    setYearsWith(y);
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top