MkArs

Untitled

Oct 28th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. package Pet;
  2.  
  3. public class Kenguru {
  4.  
  5. class kenguru extends Pet {
  6. int currenthight = 0;
  7. public int jump(int howhigh) {
  8. currenthight = currenthight + howhigh;
  9. System.out.println("jumping to" + howhigh + "feets at hight");
  10. System.out.println("I am at the hight" + currenthight + "above the ground");
  11. return currenthight;
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment