Question: Create a Person class containing the following state and behavior as identified below. In addition, the program should implement a getOldestPerson() method that returns the

Create a Person class containing the following state and behavior as identified below. In addition, the program should implement a getOldestPerson() method that returns the full name of the oldest person. You must also create a PersonTest class to store at least five Person and return the older person from the list.

Object State Behavior
Person

First Name Last Name Age Gender SSN

getters/setters

** This assignment requires that it has getters and setters, it requires 2 files, Person.java and Persontest.java, he is adamant that there should be a getOldestPerson() method that returns the full name of the oldest person. Also, the entries for the 5 people are to be not entered by the user, but entered into the program. He also requires it to have an array list. I have had a response on this before, but it was incorrect because there was no get oldest method, nor was there getters and setters. Can you help me? Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!