Need help with this program. Very Confused.

Hi,

Can someone please help me with this program?

Create a group of classes that will be derived from a base class Boat using public inheritance.

From class Boat, you will derive:

class MotorPowered with private data members:
enum FUEL_TYPE {UKFT, DIESEL, GASOLINE, ELECTRIC};
enum MOTOR_DRIVE_TYPE {UKMODT, INBOARD, OUTBOARD, IOBOARD};
char* motor manual


class MusclePowered with private data members:
enum MUSCLE_DRIVE_TYPE {UKMUDT, PADDLE, OAR, POLE, SWEEP};
unsigned number of seats

From these two classes you will derive:

Derived from MotorPowered

class Ski:
FUEL_TYPE = GASOLINE
MOTOR_DRIVE_TYPE = OUTBOARD
HULL_TYPE = PLANING
bool barefoot pole

class CabinCruiser:
FUEL_TYPE = DIESEL
MOTOR_DRIVE_TYPE = INBOARD
HULL_TYPE = SEMI_DISP
bool flying bridge

Dervied from MusclePowered

class Kayak:
MUSCLE_DRIVE_TYPE = PADDLE
HULL_TYPE = DISPLACEMENT
number of seats = 1 or two
bool whitewater

class Shanty:
MUSCLE_DRIVE_TYPE = SWEEP
HULL_TYPE = DISPLACEMENT
unsigned number of berths

Following the examples in class Boat, each data member that may be changed will have set/get functions. Virtual functions must be over ridden as needed and pure virtual functions must be implemented.
Last edited on
¿and what's the problem? ¿what part you don't understand? ¿can you do a uml diagram at least?
I'm really just not sure how to set these up. My professor didn't give much information on how to do this, and I'm still beginning to learn C++.
Topic archived. No new replies allowed.