Sup Java Com Work May 2026

public class Manager extends Employee { private double bonus;

@Override public String getDetails() { return String.format("Manager[id=%d,name=%s,salary=%.2f,bonus=%.2f]", id, name, getSalary(), bonus); } } File: com/example/work/util/Formatter.java sup java com work

public class Formatter { public static String pretty(Employee e) { return e.getDetails(); } } File: com/example/work/Main.java public class Manager extends Employee { private double

package com.example.work.employee;

import com.example.work.employee.Employee; protected int id

package com.example.work;

public class Employee { protected String name; protected int id; protected double baseSalary;

public class Manager extends Employee { private double bonus;

@Override public String getDetails() { return String.format("Manager[id=%d,name=%s,salary=%.2f,bonus=%.2f]", id, name, getSalary(), bonus); } } File: com/example/work/util/Formatter.java

public class Formatter { public static String pretty(Employee e) { return e.getDetails(); } } File: com/example/work/Main.java

package com.example.work.employee;

import com.example.work.employee.Employee;

package com.example.work;

public class Employee { protected String name; protected int id; protected double baseSalary;