Class ContactInformation

java.lang.Object
  extended by ContactInformation

public class ContactInformation
extends java.lang.Object

Contact information (i.e., phone numbers and email addresses)


Field Summary
 java.lang.String email
           
 PhoneNumber fax
           
 PhoneNumber phone
           
 
Constructor Summary
ContactInformation()
          Default Constructor
ContactInformation(PhoneNumber fax, PhoneNumber phone, java.lang.String email)
          Constructor
 
Method Summary
 java.lang.String toString()
          Returns a (formatted) String representation of this ContactInformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fax

public PhoneNumber fax

phone

public PhoneNumber phone

email

public java.lang.String email
Constructor Detail

ContactInformation

public ContactInformation()
Default Constructor


ContactInformation

public ContactInformation(PhoneNumber fax,
                          PhoneNumber phone,
                          java.lang.String email)
Constructor

Parameters:
fax - Fax number
phone - Telephone number
email - Electronic mail address
Method Detail

toString

public java.lang.String toString()
Returns a (formatted) String representation of this ContactInformation.

Overrides:
toString in class java.lang.Object
Returns:
The formatted String


James Madison University, Department of Computer Science