Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Pet;
- public class PetMaster {
- public static void main(String[] args) {
- String PetReaction;
- Pet MyPet = new Pet();
- MyPet.eat();
- PetReaction = MyPet.say("NOM, NOM, NOM, NOM");
- System.out.println(PetReaction);
- MyPet.sleep();
- Fish myFish = new Fish();
- myFish.dive(2);
- myFish.dive(3);
- Kenguru keng = new Kenguru();
- keng.jump(10);
- }
- }
Add Comment
Please, Sign In to add comment