Sup Java Com Work ●

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

import com.example.work.employee.Employee;

public Employee(String name, int id, double baseSalary) { this.name = name; this.id = id; this.baseSalary = baseSalary; } sup java com work

public double getSalary() { return baseSalary; }

public Manager(String name, int id, double baseSalary, double bonus) { super(name, id, baseSalary); // use of super to call parent constructor this.bonus = bonus; } @Override public double getSalary() { // use super

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

package com.example.work.util;

package com.example.work.employee;