Get reliable answers to your questions at Westonci.ca, where our knowledgeable community is always ready to help. Ask your questions and receive detailed answers from professionals with extensive experience in various fields. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

Ship, CruiseShip, and CargoShip ClassesDesign a Ship class that has the following members:a. a member variable for the name of the ship (a string)b. a member variable for the year that the ship was built (a string)c. A constructor and appropriate accessors and mutatorsd. A virtual print function that displays the ship's name and the year it was built.

Sagot :

Answer:

def shipvari(ship);

Cruiseship="" #defining a string

YearBuilt= ""

for i in range(ship);

if Cruiseship="";

print(CruiseShip)

Give the rest a try!

Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.