Sup Java Com Work -
import com.example.work.employee.Employee;
package com.example.work.employee;
public String getDetails() { return String.format("Employee[id=%d,name=%s,salary=%.2f]", id, name, getSalary()); } } File: com/example/work/employee/Manager.java sup java com work
package com.example.work;
public class Employee { protected String name; protected int id; protected double baseSalary; import com
public Manager(String name, int id, double baseSalary, double bonus) { super(name, id, baseSalary); // use of super to call parent constructor this.bonus = bonus; } protected int id
import com.example.work.employee.Employee; import com.example.work.employee.Manager; import com.example.work.util.Formatter;