38 void info()
const override;
41 void move(
double speed, std::vector<double> direction)
override;
A LandVehicle drives on land.
void move(double speed, std::vector< double > direction) override
Motion of the vehicle.
RoadVehicle()
Default constructor.
A RoadVehicle is any kind of vehicle that moves on the road.
void info() const override
Return identification info.
~RoadVehicle() override
Destructor.
Header for the LandVehicle class.
RoadVehicle & operator=(const RoadVehicle &rhs)
Copy assignment operator.