Sup: Java Com Work

package com.example.work;

@Override public double getSalary() { // use super.getSalary() to reference parent behavior return super.getSalary() + bonus; }

public class Employee { protected String name; protected int id; protected double baseSalary; sup java com work

import com.example.work.employee.Employee; import com.example.work.employee.Manager; import com.example.work.util.Formatter;

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

public class Main { public static void main(String[] args) { Employee dev = new Employee("Alice", 101, 70000); Manager mgr = new Manager("Bob", 201, 90000, 15000);

package com.example.work.employee;

package com.example.work.util;