-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTardigrade.java
More file actions
38 lines (30 loc) · 1.02 KB
/
Copy pathTardigrade.java
File metadata and controls
38 lines (30 loc) · 1.02 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
public class Tardigrade extends Animal implements Running, Swimming {
public Tardigrade(String name, String desc) {
super(name, desc);
}
public Tardigrade() {
super("Joe", "Joe has lived 200 years. He has seen unimaginable horrors and" +
" is no longer fazed by anything he sees. He enjoys reading in his free time.");
}
@Override
public String makeNoise() {
return "... You can't hear " + getName() + ".";
}
@Override
public String eat() {
return getName() + " proceeds to extend its snout and suck on the food item.";
}
@Override
public String play() {
return getName() + " lives forever. He has transcended playing.";
}
@Override
public String run() {
return getName() + " moves all of its eight legs in a mad fury and moves a fraction of a millimeter.";
}
@Override
public String swim() {
return getName() + " uses its eight legs to wade through the water quickly.";
}
//gucci gang
}