C_CPP/08_PTRN/Truck.hpp

18 lines
300 B
C++
Raw Normal View History

2018-03-09 09:47:53 +01:00
#ifndef Truck_hpp
#define Truck_hpp
#include "Vehicle.hpp"
class Truck : public Vehicle {
int _payload_kg; // max number kilograms to load
public:
Truck(std::string model, int payload_kg);
virtual int payload_kg();
virtual Vehicle* clone();
//virtual Vehicle* newInstance();
};
#endif