Question: Create a class named Person which will represent a unique person. The class should store the following information in appropriate ( private ) variables: The
Create a class named Person which will represent a unique person. The class should store the following information in appropriate private variables:
The first name of the person
The last name of the person
The age of the person in years
The social security number SSN of the person
You should write a constructor for the class with the signature PersonString firstName, String lastName, int age, String ssn which sets the four variables for the class in the following way:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
