forked from WildCodeSchool/quest-java-oop3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNature.java
More file actions
27 lines (22 loc) · 675 Bytes
/
Nature.java
File metadata and controls
27 lines (22 loc) · 675 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
public class Nature {
public static void main(String[] args) {
Penguin pingou = new Penguin("Pingou");
pingou.dive();
pingou.swimDown(3);
pingou.swimUp(1);
pingou.swimDown(4);
pingou.swimUp(5);
pingou.swimUp(1);
pingou.getOut();
Eagle eyeCherry = new Eagle("Eye Cherry");
// TODO : uncomment the following code in order to test it
eyeCherry.takeOff();
eyeCherry.ascend(120);
eyeCherry.ascend(30);
eyeCherry.glide();
eyeCherry.descend(140);
eyeCherry.land();
eyeCherry.descend(9);
eyeCherry.land();
}
}