-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWolverine.java
More file actions
34 lines (34 loc) · 806 Bytes
/
Copy pathWolverine.java
File metadata and controls
34 lines (34 loc) · 806 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
public abstract class Wolverine extends Animal implements Running
{
private int ferocity;
public Wolverine(int ferocity)
{
super("Wolverine", "A ferocious beast.");
this.ferocity = ferocity;
}
public Wolverine(int ferocity, String name, String desc)
{
super(name, desc);
this.ferocity = ferocity;
}
public String play()
{
return "The wolverine gnashes its teeth intimidatingly";
}
public String eat()
{
return "The wolverine gnaws at its prey.";
}
public String makeNoise()
{
return "The wolverine growls loudly.";
}
public String swim()
{
return "It washes off in a cool pond.";
}
public String run()
{
return "It runs off, smelling blood.";
}
}