-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnimal.java
84 lines (69 loc) · 1.65 KB
/
Animal.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* Class defines the animal
* Zhao Li is having fun here. ^_^O(��_��)O
*/
public class Animal {
private String name;
private int age;
private int weight;
private int height;
private String country;
/*
* Constructor of the class
* @param name name of the animal
* @param age age of the animal
* @param weight weight of the animal
* @param height height of the animal
* @param country country of origin
*/
public Animal(String name, int age, int weight, int height, String country) {
this.name = name;
this.age = age;
this.weight = weight;
this.height = height;
this.country = country;
}
/**
* Getter for the animal name
* @return name of the animal
*/
public String getName() {
return name;
}
/**
* Setter for the animal name
* @param name name of the animal
*/
public void setName(String name) {
// TODO complete the method, add javadoc comments
return;
}
public int getAge() {
// TODO complete the method, add javadoc comments
return 0;
}
public void setAge(int age) {
// TODO complete the method, add javadoc comments
}
public int getWeight() {
// TODO complete the method, add javadoc comments
return 0;
}
public void setWeight(int weight) {
// TODO complete the method, add javadoc comments
}
public int getHeight() {
// TODO complete the method, add javadoc comments
return 0;
}
public void setHeight(int height) {
// TODO complete the method, add javadoc comments
}
public String getCountry() {
// TODO complete the method, add javadoc comments
return null;
}
public void setCountry(String country) {
// TODO complete the method, add javadoc comments
}
}