Question: Modify the Code Fragment 1 . 7 . 1 CreditCard class to include the following best practices in Java: 1 . Each class must be
Modify the Code Fragment CreditCard class to include the following best practices in Java:
Each class must be a subclass of something, if it is the superclass of the application, it must be a subclass of Java Object.
Every class must be in a separate file.
Create an application to test CreditCard class, and name it TestCreditCard or DemoCreditCard
Each class must have an override toString to output the class info as a native Java Object
Use this instead of naming parameters different from the class private members.
Use ArrayList instead of the standard array for the wallet.
Output credit cards with Balance
Use Collection Sort to sort credit cards by Balance in Descending order.
The application and its classes must have headers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
