Question: Hi there, This is a java programming assignment dealing with superclasses and subclasses. You are asked to write a program to create an inventory of
Hi there,
This is a java programming assignment dealing with superclasses and subclasses.
You are asked to write a program to create an inventory of pets in a pet store called Pooches Pet Store. The name is a bit ironic in that there are no dogs currently in the store. Start with a Pet parent class and three types of pets (birds, cats and fish) as child classes. Use the following UML diagram to help write the program. Create some test pets to ensure that your program is running properly.

Consider any possible problems or limitations of this program. Modify your code to help correct these problems or improve on these limitations.
Pet EyeColor: String Age: Float Weight: Float Location: String eat (foodType) sleep(timelength) Bird Fish Cat FeatherColor: String Wingspan: String BeakType: String FurColor: String WhiskerColor: String FurLength: String ToeNumber: Integer Jawless: Boolean Skeleton Type: String DorsalFin: Boolean BodyType: String squawk() fly() purr(soundLevel) meow() groom() swim(direction) detectLight()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
