Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Exam 2 / ex1 / CarTravel.h
diff options
context:
space:
mode:
1 files changed, 20 insertions, 0 deletions
-rw-r--r--Year 1/Object-oriented Programming/Exam 2/ex1/CarTravel.h20
diff --git a/Year 1/Object-oriented Programming/Exam 2/ex1/CarTravel.h b/Year 1/Object-oriented Programming/Exam 2/ex1/CarTravel.h
new file mode 100644
index 0000000..b483d66
--- /dev/null
+++ b/Year 1/Object-oriented Programming/Exam 2/ex1/CarTravel.h
@@ -0,0 +1,20 @@
+#ifndef HEADER_CARTRAVEL
+#define HEADER_CARTRAVEL
+
+#include "RegistryNumber.h"
+
+class CarTravel {
+ RegNumb regNumb;
+ unsigned distance;
+ unsigned duration;
+
+public:
+ CarTravel();
+ CarTravel(RegNumb regNumber, unsigned distance, unsigned duration);
+
+ RegNumb getRegNumb() const;
+ unsigned getDistance() const;
+ unsigned getDuration() const;
+};
+
+#endif