public class ReimbursementRequest extends EmployeeRequest { private double amount; private String description; public ReimbursementRequest(double amount, String description, Employee employee) { super(employee); this.amount = amount; this.description = description; } public double getAmount() { return amount; } public String getDescription() { return description; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; ReimbursementRequest other = (ReimbursementRequest) obj; if (Double.doubleToLongBits(amount) != Double.doubleToLongBits(other.amount)) return false; if (description == null) { if (other.description != null) return false; } else if (!description.equals(other.description)) return false; return true; } }