Answered step by step
Verified Expert Solution
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
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. dStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started