Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started