Question: Design a modification of the BankAccount class in which the first five transactions per month are free and a $1 fee is charged for every
Design a modification of the BankAccount class in which the first five transactions per month are free and a $1 fee is charged for every additional transaction. Provide a method that deducts the fee at the end of a month. What additional instance variables do you need? Using the object tracing technique described in Section 3.5 , trace a scenario that shows how the fees are computed over two months.
Step by Step Solution
3.45 Rating (152 Votes )
There are 3 Steps involved in it
First and foremost lets think about the additional instance variables this modified BankAccount class would need There are two key elements here the n... View full answer
Get step-by-step solutions from verified subject matter experts
