Sup Java Com Work
import com.example.work.employee.Employee; import com.example.work.employee.Manager; import com.example.work.util.Formatter;
public Manager(String name, int id, double baseSalary, double bonus) { super(name, id, baseSalary); // use of super to call parent constructor this.bonus = bonus; } sup java com work
@Override public double getSalary() { // use super.getSalary() to reference parent behavior return super.getSalary() + bonus; } import com






