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.

Hi there, This is a java programming assignment dealing with superclasses and

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!