Question: Create 2 Java programs. 1. Person.java 1. Will be used to create a Person object 2. Variables for Name and Age 3. Accessor and Mutator

Create 2 Java programs. 1. Person.java 1. Will be used to create a Person object 2. Variables for Name and Age 3. Accessor and Mutator Methods for all instance variables 4. Method for setPerson (this will set all variables for a person in 1 method) 5. Well encapsulated (make variables private, methods public) 6. Methods for .equals, isOlder, and isYounger 2. Person Driver Java 1. Has a main method that will be used to test all methods you created 2. Make sure you create enough people to appropriately test your methods. 3. Ensure that boolean tests use 2 if/else blocks each (1 where we test a true result, 1 where we test a false result)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
