Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Exam 2 / ex1 / AirTravel.cpp
blob: d0652060f5f1ca4be9f3d9837899e57037b44af0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "AirTravel.h"

AirTravel::AirTravel() : AirTravel("", 0) {}

AirTravel::AirTravel(const char* flightNumber, unsigned duration) : flightNumber(flightNumber) {
	this->duration = duration;
}

String AirTravel::getFlightNumber() const {
	return flightNumber;
}

unsigned AirTravel::getDuration() const {
	return duration;
}