1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#pragma once
#include "vehicle.h"
class truck : public vehicle
{
private:
bool hasBed;
string bedType;
public:
truck(bool P_hasBed, string P_bedType, string P_name, string P_colour, int P_doors, engine P_engine) : hasBed(P_hasBed), bedType(P_bedType), vehicle(P_name, P_colour, P_doors, P_engine)
{}
truck(bool P_hasBed, string P_name, string P_colour, int P_doors, engine P_engine) : hasBed(P_hasBed), vehicle(P_name, P_colour, P_doors, P_engine)
{}
void getDetails();
};
|