-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContact.java
47 lines (38 loc) · 818 Bytes
/
Contact.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* contacts book
* autor Diego Alfaro
* github diegoalfarog
* @version 0.1
* date: 4/15/2021
*/
public class Contact {
private String name;
private String phone;
private String email;
public Contact(String name, String phone, String email) {
this.name = name;
this.phone = phone;
this.email = email;
}
public String getName() {
return name;
}
public String getPhone() {
return phone;
}
public String getEmail() {
return email;
}
public void setName(String name) {
this.name = name;
}
public void setPhone(String phone) {
this.phone = phone;
}
public void setEmail(String email) {
this.email = email;
}
public String toString() {
return "Contact: Name: " + this.name + " Phone: " + this.phone + " Email: " + this.email;
}
}