Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mammal Thomas= new Mammal("Thomas Kobald", "kleiner Stachel", 0.4, false);
- System.out.println(Thomas);
- Thomas.setNutrition(true);
- System.out.println(Thomas.getNutrition());
- Mammal Schane= new Mammal("king of the mammals", "everything", 20.5,true);
- Thomas.setNutrition(false);
- System.out.println(Schane);
- Schane.canIeatthisshit(Thomas);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement