public class Contact
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Contact(java.lang.String name,
java.lang.String surname,
java.lang.String phone,
int age,
Address address,
java.lang.String[] emails) |
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
int |
getAge() |
java.lang.String[] |
getEmails() |
java.lang.String |
getName() |
java.lang.String |
getPhone() |
java.lang.String |
getSurname() |
void |
setAddress(Address address) |
void |
setAge(int age) |
void |
setEmails(java.lang.String[] emails) |
void |
setName(java.lang.String name) |
void |
setPhone(java.lang.String phone) |
void |
setSurname(java.lang.String surname) |
java.lang.String |
toString() |
public Contact(java.lang.String name, java.lang.String surname, java.lang.String phone, int age, Address address, java.lang.String[] emails)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getSurname()
public void setSurname(java.lang.String surname)
public java.lang.String getPhone()
public void setPhone(java.lang.String phone)
public int getAge()
public void setAge(int age)
public Address getAddress()
public void setAddress(Address address)
public java.lang.String[] getEmails()
public void setEmails(java.lang.String[] emails)
public java.lang.String toString()
toString
in class java.lang.Object