Advertisement
akosiraff

Phone

Apr 20th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/phone/
  3.  
  4. 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.
  5. The PhoneEntry class should be written to the following specifications:
  6. • There should be at least three fields, representing the first name, last name and phone number.
  7. • All set and get methods should be defined.
  8. • A constructor should be defined with three parameters representing the three fields.
  9. • A default constructor should be defined setting the three fields to default values.
  10. • 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.
  11. 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.
  12. Download: http://solutionzip.com/downloads/phone/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement