Question: Design a class that hold the personal data: name, address, age and phone number. Write appropriate methods (constructor, getters ad setters). Demonstrate the class by

Design a class that hold the personal data: name, address, age and phone number. Write appropriate methods (constructor, getters ad setters). Demonstrate the class by writing a program that creates three instances of the class. You can populate information in each object using Scanner class. Please do not use any personal information as data in the project.

Step by Step Solution

3.40 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner class PersonalData private String name private String address private int age private String phoneNumber Constructor public Per... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!