Question: help me 4. Consider a class Person that represents an entry in an address book. Its attributes are: The first name of the person (String

help me
help me 4. Consider a class Person that represents an entry in

4. Consider a class Person that represents an entry in an address book. Its attributes are: The first name of the person (String type). The last name of the person (String type). The Telephone number of the person (integer type). 1. Write a constructor that takes three parameters-two string and one integer. Use these parameters to initialize the instance variables declared earlier 2. Write a get and a set method for each of the instance variables in the class. 3. Write a separate program that creates three Person objects to hold the following data. First Name Last Name Telephone Number Ahmed Shams 36251478 Kareema Zaidan 33247825 Jassim Naeem 334786541 Output the first name, last name and the telephone number for each of the above persons

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!