Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Pet;
- public class Kenguru {
- class kenguru extends Pet {
- int currenthight = 0;
- public int jump(int howhigh) {
- currenthight = currenthight + howhigh;
- System.out.println("jumping to" + howhigh + "feets at hight");
- System.out.println("I am at the hight" + currenthight + "above the ground");
- return currenthight;
- }
- }
- }
Add Comment
Please, Sign In to add comment