-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathTiger.java
More file actions
51 lines (36 loc) · 759 Bytes
/
Tiger.java
File metadata and controls
51 lines (36 loc) · 759 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
45
46
47
48
49
50
51
/**
* Michael Van Riessen - mjvanriessen
* CIS175 - Spring 2023
* Jan 17, 2023
*/
package model;
public class Tiger {
private double weight;
private String scientificName;
private int ageYears;
public Tiger() {
}
public Tiger(double weight, String scientificName, int ageYears) {
this.weight = weight;
this.scientificName = scientificName;
this.ageYears = ageYears;
}
public double getWeight() {
return weight;
}
public void setWeight(double weight) {
this.weight = weight;
}
public String getScientificName() {
return scientificName;
}
public int getAgeYears() {
return ageYears;
}
public void setAgeYears(int ageYears) {
this.ageYears = ageYears;
}
public String speak() {
return "ROAR!";
}
}