Question: Part-3 (Abstract Class and Interface) Consider the Class that you designed in Part-1 of this project and do the following: 1. Implement the Comparable and
Part-3 (Abstract Class and Interface) Consider the Class that you designed in Part-1 of this project and do the following: 1. Implement the Comparable and Cloneable interface for your class. 2. The Test class should create 10 instances (objects) of your class. 3. Store these instances in Array and ArrayList. 4. Show the demo of sorting these objects stored in Array and ArrayList. Include the below in your project report: The code of implementing Comparable and Cloneable Interfaces. Screenshot of relevant (Comparable and Cloneable) outputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
