Question: Expand upon the previous Java program by: 1. Put all variables into their own class called User, separating out first and last names and a

Expand upon the previous Java program by: 1. Put all variables into their own class called User, separating out first and last names and a new variable: birth date. 2. All variables should have the appropriate access types. 3. The constructor should have an empty, default constructor that initializes everything to the following: a. For name variables, an empty string. b. For age, zero. c. For birthdate, an empty string. 4. Each variable should have its own getter and setter methods. The main should initialize the User class and create an instance of that object. It should then utilize the setters of the user object to place the values it receives into the proper variables within the user and then use the getters to retrieve the values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
