Question: FAST PLEASE Exercise 2 . Inheritance Extend the superclass defined in Exercise 1 to a subclass FormulaRider with the following private data members: a) modelEngine

FAST PLEASE
FAST PLEASE Exercise 2 . Inheritance Extend the superclass defined in Exercise
1 to a subclass FormulaRider with the following private data members: a)

Exercise 2 . Inheritance Extend the superclass defined in Exercise 1 to a subclass FormulaRider with the following private data members: a) modelEngine (string), b) comp_distance (int) / competing distance, For this class, implement: - the appropriate constructors (with no-arguments, with argum. and copy constructor) - the appropriate get/set methods and overload the following methods: - print () which will print all the information about the FormulaRider in the following format: name: title: nr_tours. model: comp_distance - input () which inputs the data about the formulaRider. In the main() method class: - implement a method modelferrari() to accept an array of FormulaRiders and return an array/list of the FormulaRiders with the model of the engine "Ferrari". - implement a method riders_SpecificDistance () to accept an array of FormulaRiders and return an array/list of FormulaRiders that hold the title "champion" and have at least 20km competing distance. - In the main method: create an array of FormulaRiders; input the data about each FormulaRider print the data of the FormulaRiders with the model of the engine "Ferrari". print the data about the riders that hold the title "champion" and have at least 20km competing distance. Exercise 2 . Inheritance Extend the superclass defined in Exercise 1 to a subclass FormulaRider with the following private data members: a) modelEngine (string), b) comp_distance (int) / competing distance, For this class, implement: - the appropriate constructors (with no-arguments, with argum. and copy constructor) - the appropriate get/set methods and overload the following methods: - print () which will print all the information about the FormulaRider in the following format: name: title: nr_tours. model: comp_distance - input () which inputs the data about the formulaRider. In the main() method class: - implement a method modelferrari() to accept an array of FormulaRiders and return an array/list of the FormulaRiders with the model of the engine "Ferrari". - implement a method riders_SpecificDistance () to accept an array of FormulaRiders and return an array/list of FormulaRiders that hold the title "champion" and have at least 20km competing distance. - In the main method: create an array of FormulaRiders; input the data about each FormulaRider print the data of the FormulaRiders with the model of the engine "Ferrari". print the data about the riders that hold the title "champion" and have at least 20km competing distance

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!