Phone

Ratings: 1 Star2 Stars3 Stars4 Stars5 Stars (5.00 out of 5) - Rate Now!
Loading...

Download Category:

Phone.zip - (91.58 KB)
[
Phone/.classpath
Phone/.project
Phone/Phone.class
Phone/Phone.java
Phone/PhoneEntry.class
Phone/PhoneEntry.java
Phone/Question.txt
Phone/Screenshot_1.png
]

Write a class named PhoneEntry to represent a name and phone number. Then, write a separate driver program and name it Phone.java 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.

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

Ask Your Question

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

time

Save Time and Money

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

download

Get Your Answer

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