subject

Min MaxAccount
Language/Type: Java classes implementing inheritance instance methods
Related Links: BankingAccount. java
Author: Robert Baxter
A company has written a large class BankingAccount with many methods including: Method/Constructor Description
public BankingAccount(Startup s) constructs a BankingAccount object using
information in the Startup object s
public void debit(Debit d) records the given debit
public void credit(Credit c) records the given credit
public int getBalance() returns current balance in pennies
Design a new class MinMaxAccount whose instances can be used in place of a BankingAccount object but include new behavior of remembering the minimum and maximum balances ever recorded for the account. You should provide the same methods as the superclass, as well as the following new behavior:
Method/Constructor Description
public MinMaxAccount (Startup s) constructs a MinMaxAccount object using
information in the Startup objects s
public int getMin() returns minimum balance in pennies
public int getMax() returns maximum balance in pennies
The account's constructor sets the initial balance based on the Startup information. Assume that only the debit and credit methods change an account's balance.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
Distinguish between a skill resume and a chronological resume and explain when it is best to use each format
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
People should never use telepresence when virtually meeting with a group of co-workers. true false
Answers: 1
question
Computers and Technology, 25.06.2019 20:00
The opening of the throttle plate can be delayed as long as
Answers: 1
You know the right answer?
Min MaxAccount
Language/Type: Java classes implementing inheritance instance methods
R...
Questions
question
Mathematics, 19.06.2020 03:57
Questions on the website: 13722363