-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathCrow.java
More file actions
59 lines (46 loc) · 931 Bytes
/
Crow.java
File metadata and controls
59 lines (46 loc) · 931 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
/**
* Author: Daniel Lebedev - dalebedev
* Description: XXX
* CIS 175 - Spring 2024
* Feb 2, 2024
*/
package model;
public class Crow {
private String name;
private String color;
private float wingspan;
public Crow() {
super();
}
public Crow(String name, String color, float wingspan) {
super();
this.name = name;
this.color = color;
this.wingspan = wingspan;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public float getWingspan() {
return wingspan;
}
public void setWingspan(float wingspan) {
this.wingspan = wingspan;
}
@Override
public String toString() {
return "Crow: Name=" + this.name + "color=" + this.color + "Wingspan=" + this.wingspan;
}
public String makeNoise() {
return "Caw Caw!";
}
}