Question: Part 3 (Abstract Class and Interface) ____________________________________________________________________________ Consider the Class that you designed in Part-1 of this project and do the following: Implement the Comparable
Part 3 (Abstract Class and Interface)
____________________________________________________________________________
Consider the Class that you designed in Part-1 of this project and do the following:
- Implement the Comparable and Cloneable interface for your class.
- The Test class should create 10 instances (objects) of your class.
- Store these instances in Array and ArrayList.
- 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
