Sie sind auf Seite 1von 1

/*

NAME : Minivan
PURPOSE : The purpose of this class is to keep track of minivan specific
details
*/

#include <stdio.h>
#include "car.h"
#ifndef __MINIVAN_H__
#define __MINIVAN_H__

class Minivan : public Car


{
/* ====================================== */
/* PRIVATE */
/* ====================================== */
private:
/* -------------- ATTRIBUTES ------------ */
char manufacturer[25];
int hasSeating;
int cargoSpace; // sq feet

/* ====================================== */
/* PUBLIC */
/* ====================================== */
public:

Minivan(char* whoMade, int mpg, int seating, int space, char* whatColor = "Not
Painted\0");
virtual ~Minivan(void);
void VehicleDetails(void);

virtual void SetColor(char* newColor); // technically I don't need to specify


these methods as virtual because
virtual char* GetType(void); // they are (given the
parent class definition) - but for readability I
// am
placing the "virtual" keyword here as well
};

#endif

Das könnte Ihnen auch gefallen