#include "Automobile.h" Automobile::Automobile(String brand, unsigned maxSpeed) : Vehicle(brand, (maxSpeed >= 180 && maxSpeed <= 240) ? maxSpeed : 180) {} unsigned Automobile::getSpeedOnRoad(Road road) const { return Vehicle::getMaxSpeed(); } Automobile* Automobile::clone() const { return new Automobile(*this); }