1 2 3 4 5 6 7 8 9 10 11 12
#include "Vehicle.h" Vehicle::Vehicle(const String& brand, unsigned maxSpeed) { this->brand = brand; this->maxSpeed = maxSpeed; } unsigned Vehicle::getMaxSpeed() const { return maxSpeed; } Vehicle::~Vehicle() {}