MinMaxAccount . A company has written a large class BankAccount with many methods including: Design a new
Question:
MinMaxAccount . A company has written a large class BankAccount with many methods including:
Design a new class MinMaxAccount whose instances can be used in place of a bank account but include new behavior of remembering the minimum and maximum balances ever recorded for the account. The class should have a constructor that accepts a Startup parameter. The bank account’s constructor sets the initial balance on the basis of the startup information. Assume that only debits and credits change an account’s balance. Include these new methods in your class.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: