//******************************************************************** // Contact.java Author: Lewis, Loftus, Stevens, Davis, Brenneman // Represents a contact. //******************************************************************** abstract class Contact { private String firstName, lastName, phone; //----------------------------------------------------------------- // Sets up this contact with the specified information. //----------------------------------------------------------------- public Contact (String firstName, String lastName, String phone) { this.firstName = firstName; this.lastName = lastName; this.phone = phone; } //----------------------------------------------------------------- // returns formatted contact info for each contact in the addressbook //----------------------------------------------------------------- public String toString () { return lastName + ", " + firstName + "\tPhone:" + phone + "\n"; } }