-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiger.java
More file actions
38 lines (32 loc) · 694 Bytes
/
Copy pathTiger.java
File metadata and controls
38 lines (32 loc) · 694 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
public class Tiger extends Animal implements Swimming, Running
{
public Tiger(String name, String description)
{
super("Tiger", "(you probably know what a tiger is)");
}
@Override
public String play()
{
return "I";
}
@Override
public String eat()
{
return "It eats a porg";
}
@Override
public String makeNoise()
{
return "roar";
}
@Override
public String swim()
{
return "It actally swims, and then teases all other cats";
}
@Override
public String run()
{
return "It runs to the edge of its ever-shrinking habitat";
}
}