Question: 2. Create a Java class named CreditCardTester, that has a main method that performs the following: a. Instantiates three (3) objects of type CreditCard. These


2. Create a Java class named CreditCardTester, that has a main method that performs the following: a. Instantiates three (3) objects of type CreditCard. These objects should be passed the following arguments: i. The first one, is not passed arguments, which means they should use the default class values described in part 1gj ii. The second one should be passed the values: - "Jane Smith", 5312264554231345, 1, 10 (Jan 2024), note these values are valid iii. The third one should be passed the values: - "Neva Read", 10234, 5, 8 (April 2022), note the account number is invalid b. Each object's information should then be display using the displayCardInfo() method (have a System.out.printIn before each display to explain which object you are about to display) c. Three (3) System.out.println() that tell whether each of the account numbers is valid or not. Only one will be invalid (Jane Read's)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
