judiMc / oopExamples

repository to contain the solutions for the practice problems for the scioer e-text on oo programming in java.
GNU Affero General Public License v3.0
1 stars 0 forks source link

ooDesign/comparingFrankenstein #20

Closed judiMc closed 1 year ago

judiMc commented 2 years ago

Modify the solution for the problem stated in Practice Activities for Constructors so that the Frankenstein class implements the Comparable interface. Use the Runner class to demonstrate how two objects can be compared. Create an ArrayList of Frankenstein objects and show how the sort method works.