Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Mammal Thomas= new Mammal("Thomas Kobald", "kleiner Stachel", 0.4, false);
  2. System.out.println(Thomas);
  3. Thomas.setNutrition(true);
  4. System.out.println(Thomas.getNutrition());
  5. Mammal Schane= new Mammal("king of the mammals", "everything", 20.5,true);
  6. Thomas.setNutrition(false);
  7. System.out.println(Schane);
  8. Schane.canIeatthisshit(Thomas);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement