C_CPP/08_PTRN/Car.hpp

19 lines
278 B
C++
Raw Normal View History

2018-03-09 09:47:53 +01:00
#ifndef Car_hpp
#define Car_hpp
#include "Vehicle.hpp"
class Car : public Vehicle {
int _maxWeight;
public:
Car(std::string model, int maxWeight);
int maxWeight();
virtual int payload_kg();
virtual Vehicle* clone();
//virtual Vehicle* newInstance();
};
#endif