-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathBongo.java
More file actions
59 lines (50 loc) · 875 Bytes
/
Bongo.java
File metadata and controls
59 lines (50 loc) · 875 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
52
53
54
55
56
57
58
59
package model;
/**
* @author torirem - aaustin5
* CIS175 - Fall 2023
* Aug 29, 2023
*/
public class Bongo {
private String range;
private String sex;
private float weight;
public Bongo() {
super();
}
public Bongo(String range, String sex, float weight) {
this.range = range;
this.sex = sex;
this.weight = weight;
}
/**
* @return the range
*/
public String getRange() {
return range;
}
/**
* @param range the range to set
*/
public void setRange(String range) {
this.range = range;
}
/**
* @return the sex
*/
public String getSex() {
return sex;
}
/**
* @param sex the sex to set
*/
public void setSex(String sex) {
this.sex = sex;
}
@Override
public String toString() {
return "Bongo [range=" + range + ", sex=" + sex + ", weight=" + weight + "]";
}
public String makeNoise() {
return "Snort!";
}
}