18 lines
300 B
C++
18 lines
300 B
C++
#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
|
|
|