1 create a person class that has one int field named age the person class should imp 5346494

1. Create a Person class that has one int field named age. The Person class should implement Comparable. Derive a subclass of Person called Employee. This class will be used in the next problem. 2. Write a generic class called “MyComparableFour”. It is like the previous MyFour class except its type parameter only accepts objects that implement Comparable on itself or a superclass. It should have a method called max that returns the largest of the four items it is storing. Finally, add a “main” method. It should do everything the main method in the MyFour class did, plus it should call the max method to demonstrate that the largest Integer item is found. After demonstrating max with the Integer type, demonstrate that it also works for your Employee class.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now