Question: 3. Personal Information Class Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods.
3. Personal Information Class Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods. Demonstrate the class by writing a program that creates three instances of it. One instance should hold your information, and the other two should hold your friends or family members information.
Person.java, PersonalInfoDemo1.java, PersonalInfoDemo2.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
