Discover answers to your questions with Westonci.ca, the leading Q&A platform that connects you with knowledgeable experts. Get quick and reliable answers to your questions from a dedicated community of professionals on our platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

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!

We hope this information was helpful. Feel free to return anytime for more answers to your questions and concerns. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. Westonci.ca is here to provide the answers you seek. Return often for more expert solutions.