import java.util.Date; /** * This class is a storage class to store a 'deposit'. It extends Transaction * and therefore inherits all methods and fields from that class. */ public class Deposit extends Transaction { /** * Constructor used to make a new deposit. */ public Deposit(String date, double amount, String name) { super(date, amount, name, "Deposit"); // using superclass constructor } }