Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Exam 2 Preparation / Vehicle.cpp
blob: 2d06f14af3467f9f9344c4ddf0999bdc3c9f71cb (plain) (blame)
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() {}