Help needed on C++ program:
Program Description:
Complete the Ship, CruiseShip, and CargoShip program (#12 in the9th edition of the text).
Read the specific method requirements in the text.
Specific Requirements:
• Create the Ship class.
• Create CruiseShip and CargoShip classes that are derived fromShip.
• Create a small tester cpp file that has an array of Shippointers (one each of Ship,
CruiseShip, and CargoShip). The program steps through the array,calling each object’s print method.
• No user input is required for this program.
Example output:
Name: Lollipop
Year built: 1960
—————————-
Name: Disney Magic
Maximum passengers: 2400
—————————-
Name: Black Pearl
Cargo capacity: 50000 tons
—————————-
Press any key to continue . . .
Expert Answer
An
PayPal Gateway not configured
PayPal Gateway not configured