Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just Some Java Practice! The birds in the table below have different abilities running, swimming, and flying. Each bird has a fixed set of abilities

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Just Some Java Practice!

The birds in the table below have different abilities running, swimming, and flying. Each bird has a fixed set of abilities as listed in the table Type Running Swimming Flying Key Letter Penguin Ostrich Duck Sooty Tern Loon Hummingbird Assume the following Ability's are measured in speed (mph) for running/swimming and altitude (feet) for flying Specifications 1. Create a Java class called UsernameAssignment3 (please use this exact name) 2. Follow "CS1450 Programming Assignments Policy" 3. Design an ABSTRACT class called Bird containing the following fields and methods a. Private Data Fields name - String for bird's name ii, i. type-String for bird's specific type (ie. penguin, ostrich, etc.) b. Public Methods i. Getter and setter for each data field ii. ABSTRACT method interestingFact() -returns string representing fact about bird 4. Design 3 INTERFACES to represent the 3 abilities a. b. c. Swimmer with a method named swim() - returns swimming speed Runner with a method named run() - returns running speed Flyer with a method named fly() - returns flying altitude 5. Define 6 subclasses Penguin, Ostrich, Duck, Sooty Tern, Loon, and Humming Bird a. Each subclass must extend Bird. b. Each subclass must implement ONLY the interfaces for the abilities the bird possesses. i. For example: Humming Bird class only implements Flyer. Bird's name and ability values are in the file For the interesting facts, use the following strings c. d

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_2

Step: 3

blur-text-image_3

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

Define shareholder wealth. Explain how it is measured.

Answered: 1 week ago

Question

to less than 0.5?

Answered: 1 week ago

Question

9. Mohawk Industries Inc.

Answered: 1 week ago