-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrca.java
More file actions
40 lines (34 loc) · 910 Bytes
/
Copy pathOrca.java
File metadata and controls
40 lines (34 loc) · 910 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
public class Orca extends Animal implements Swimming
{
private int coolness;
public Orca()
{
super("Orca" ,"A majestic and intelligent whale that is black with/n"+
"white patterns on it.");
}
public Orca(String name, String desc)
{
super(name, desc);
}
@Override
public String play()
{
return "The orca breaches out of the water and does a backflip";
}
@Override
public String eat()
{
return "The orca chomps down on the large fishes in its tank";
}
@Override
public String makeNoise()
{
return "The whale makes a high pitched whistling sound";
}
@Override
public String swim()
{
return "The orca glides through the water with its fin sticking \n" +
"out of the water";
}
}