Before turning in your work, review that you satisfied the requirements discussed in class:
1. DO NOT VIOLATE ENCAPSULATION
2. Use INHERITANCE CONCEPTS to re-use code and functionality.
Specifications:
You will create only one animal class and two of your classmates will share one of their own each for you to have a complete Pet Shop application.
The sample test below is incomplete and you need to add whatever os necessary to make it work.
… PetSet myPetShop = new PetSet(); Animal tweety = new Bird(45.00, "I am a bird"); Animal duffy = new Bird(5.00, "I am a bird"); Animal nemo = new Fish(62.00, "I am a fish"); Animal bear = new Dog(1100.00, "I am a dog"); … … myPetShop.add(tweety); myPetShop.add(duffy); myPetShop.add(nemo); myPetShop.add(bear); … System.out.println(myPetShop);