-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathPet.java
More file actions
44 lines (32 loc) · 738 Bytes
/
Pet.java
File metadata and controls
44 lines (32 loc) · 738 Bytes
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
package io.zipcoder.pets;
public class Pet implements Animal {
private String Name;
private final Integer Id;
private PetOwner Owner;
public Pet(String name, Integer id) {
this.Name = name;
this.Id = id;
this.Owner = null;
}
public String getName() {
return this.Name;
}
public void setName(String name) {
this.Name = name;
}
public Integer getId() {
return Id;
}
// public void setId(Integer id) {
// this.Id = id;
// }
public PetOwner getOwner() {
return this.Owner;
}
public void setOwner(PetOwner owner) {
this.Owner = owner;
}
public String speak() {
return null;
}
}