#include "iostream.h"
public: | virtual int getEngineModel( ) { return 0 }; |
bool hasABSBrakes( ); | |
protected: | |
short int engineModelNumber; | |
}; |
class Jetta : public Volkswagen { |
public: | |
int getEngineModel( ) { return 1 }; | |
void setCruiseControl( ); | |
protected: | |
}; |
class Beetle : public Volkswagen { |
public: | |
int getEngineModel( ) { return 2 }; | |
void setColorScheme( ); | |
protected: | |
char* colorScheme; | |
}; |