Python Program Design Ship Class Following Members Member Variable Name Ship Member Variab Q37162262

Python Program —- Design a Ship class that has the followingmembers: • A member variable for the name of the ship • A membervariable for the year that the ship was built • A constructor andappropriate accessors and mutators • A print function that displaysthe ship’s name and the year it was built. Design a CruiseShipclass that is derived from the Ship class. The CruiseShip classshould have the following members: • A member variable for themaximum number of passengers • A constructor and appropriateaccessors and mutators • A print function that overrides the printfunction in the base class. The CruiseShip

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.