-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlamingo.java
More file actions
53 lines (45 loc) · 1.03 KB
/
Copy pathFlamingo.java
File metadata and controls
53 lines (45 loc) · 1.03 KB
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
public class Flamingo extends Animal implements Swimming, Running, Flying
{
private int cuteness;
public Flamingo(int cuteness)
{
super("Flamingo", "large birds with long necks and pink/reddish /n" +
"feathers.");
this.cuteness = cuteness;
}
public Flamingo(int cuteness, String name, String desc)
{
super(name, desc);
this.cuteness = cuteness;
}
@Override
public String play()
{
return "The flamingo starts pecking at you violently";
}
@Override
public String eat()
{
return "flamingo starts chomping bugs";
}
@Override
public String makeNoise()
{
return "merp mehp merp mehp";
}
@Override
public String swim()
{
return "It walks in water";
}
@Override
public String fly()
{
return "Travels 373 miles away from the Zoo";
}
@Override
public String run()
{
return "It sprints to the nearest shrimp";
}
}