Question: The PredatoryCreditCard class provides a processMonth( ) method that models the completion of a monthly cycle. Modify the class so that once a customer has
The PredatoryCreditCard class provides a processMonth( ) method that models the completion of a monthly cycle. Modify the class so that once a customer has made ten calls to charge during a month, each additional call to that method in the current month results in an additional $1 surcharge.
Step by Step Solution
3.31 Rating (148 Votes )
There are 3 Steps involved in it
private int chargesThisMonth 0 new instance variable public void processMonth chargesThisMonth 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
