Class Contacts

java.lang.Object
  extended by Contacts

public class Contacts
extends java.lang.Object

Creates a contact.

Author:
nossl

Constructor Summary
Contacts(java.lang.String name, java.lang.String phone, java.lang.String email, java.lang.String cPhone)
          Normal Constructor
 
Method Summary
 java.lang.String getcPhone()
          Gets the cell phone number of the contact.
 java.lang.String getEmail()
          Gets the Email of the contact.
 java.lang.String getName()
          Gets the name of the contact.
 java.lang.String getPhone()
          Gets the phone of the contact.
 void setcPhone(java.lang.String cPhone)
          Sets the cell phone number of the contact.
 void setEmail(java.lang.String email)
          Sets the email of the contact
 void setName(java.lang.String name)
          Sets the name of the contact
 void setPhone(java.lang.String phone)
          Sets the phone of the contact.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Contacts

public Contacts(java.lang.String name,
                java.lang.String phone,
                java.lang.String email,
                java.lang.String cPhone)
Normal Constructor

Parameters:
name -
phone -
email -
cPhone -
Method Detail

getName

public java.lang.String getName()
Gets the name of the contact.

Returns:

setName

public void setName(java.lang.String name)
Sets the name of the contact

Parameters:
name -

getPhone

public java.lang.String getPhone()
Gets the phone of the contact.

Returns:

setPhone

public void setPhone(java.lang.String phone)
Sets the phone of the contact.

Parameters:
phone -

getEmail

public java.lang.String getEmail()
Gets the Email of the contact.

Returns:

setEmail

public void setEmail(java.lang.String email)
Sets the email of the contact

Parameters:
email -

getcPhone

public java.lang.String getcPhone()
Gets the cell phone number of the contact.

Returns:

setcPhone

public void setcPhone(java.lang.String cPhone)
Sets the cell phone number of the contact.

Parameters:
cPhone -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object