Question: Design and implement an ADT named CreditCard that represents a credit card. The data of the ADT should include Java variables for the customer name,
Design and implement an ADT named CreditCard that represents a credit card. The data of the ADT should include Java variables for the customer name, the account number, the next due date, the reward points, and the account balance. The initialization operation should set the data to client-supplied values. Include operations for a credit card charge, a cash advance, a payment, the addition of interest to the balance, and the display of the statistics of the account. Be sure to include a main class which creates an object from your CreditCard class. Do not worry too much about the correctness of the methods, the method headers and whether they are invoked correctly from client code is what really matters (20 points).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
