Download Category: - (91.58 KB)

Write a class named PhoneEntry to represent a name and phone number. Then, write a separate driver program and name it to declare and instantiate five phone entries and to print them out.
The PhoneEntry class should be written to the following specifications:
• There should be at least three fields, representing the first name, last name and phone number.
• All set and get methods should be defined.
• A constructor should be defined with three parameters representing the three fields.
• A default constructor should be defined setting the three fields to default values.
• A public String toString() method should return a String with the first name, last name and phone number concatenated together with readable spacing and/or punctuation.
Be sure to add comments with a description of the program, your name, the date, and a short comment for each variable declaration. Also, add comments for each method describing the method and commenting all parameters, return values and local variables. Also be sure to use good variable names.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.

Ask Your Question

We have verified professionals who are ready to answer your question.


Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.


Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.