Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

The Jones Company

Answered: 1 week ago