Question: Hello, it is a c++ assignment, please dont copy and paste others answers. Requested file: BoatPlane.cpp Given two classes: Plane and Boat that share common
Given two classes: Plane and Boat that share common methods (add,remove) of adding and removing passengers, and the following characteristics that are distinct to each has their own method to steer Bank, Tack each has their own medium used for travel: Air,Sea each with their own method to accelerate: jetThrust, setSails each with their own method to brake: wingFlap, furiSails each has their own sense of direction: Plane: Nose, Tail, Left, Right Boat: Bow, Stern, Port, Starboard 1. Create an abstract class Vehicle that has the methods common to all classes 2. Create a derived class Boat that inherits from Vehicle and has the appropriate fiolds and functions 3 Create a derived class BoatPlane that inherits from Boat that adds the appropriate fiekds and overloads the appropriate functions. A BoatPlane should be able to distinguish whether it s traveling as a Plane or a Boat rake, and stop. Each Arction should smoty print out a label of which met da berg used nr?ar ple when To ost o your a Plane class should m oke the unctions to acce orate steer have a Boat object, accelerate0 should print '"setSails: When you have a PlanelBoat objact accelerate) should print eThrust
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
