Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Exam 2 / ex1 / AirTravel.h
diff options
context:
space:
mode:
1 files changed, 18 insertions, 0 deletions
-rw-r--r--Year 1/Object-oriented Programming/Exam 2/ex1/AirTravel.h18
diff --git a/Year 1/Object-oriented Programming/Exam 2/ex1/AirTravel.h b/Year 1/Object-oriented Programming/Exam 2/ex1/AirTravel.h
new file mode 100644
index 0000000..c7f24ca
--- /dev/null
+++ b/Year 1/Object-oriented Programming/Exam 2/ex1/AirTravel.h
@@ -0,0 +1,18 @@
+#ifndef HEADER_AIRTRAVEL
+#define HEADER_AIRTRAVEL
+
+#include "String.h"
+
+class AirTravel {
+ String flightNumber;
+ unsigned duration;
+
+public:
+ AirTravel();
+ AirTravel(const char* flightNumber, unsigned duration);
+
+ String getFlightNumber() const;
+ unsigned getDuration() const;
+};
+
+#endif