Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Exam 2 Preparation / main.cpp
diff options
context:
space:
mode:
Commit71c57cde42e99301aeb079be4ef368ff155f99c5 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-25 14:05:56 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-25 14:05:56 +0300
Filesb8d0c07bd7514077d4595cac1b0704cf05b96ebd /Year 1/Object-oriented Programming/Exam 2 Preparation/main.cpp
uni-projects-71c57cde42e99301aeb079be4ef368ff155f99c5.tar
uni-projects-71c57cde42e99301aeb079be4ef368ff155f99c5.tar.gz
uni-projects-71c57cde42e99301aeb079be4ef368ff155f99c5.zip
Parentff171c3bc508e4a82e2329c550532f60a8be2e38 (diff)
Added my prep work for exam2
1 files changed, 15 insertions, 0 deletions
-rw-r--r--Year 1/Object-oriented Programming/Exam 2 Preparation/main.cpp15
diff --git a/Year 1/Object-oriented Programming/Exam 2 Preparation/main.cpp b/Year 1/Object-oriented Programming/Exam 2 Preparation/main.cpp
new file mode 100644
index 0000000..b75084d
--- /dev/null
+++ b/Year 1/Object-oriented Programming/Exam 2 Preparation/main.cpp
@@ -0,0 +1,15 @@
+#include <iostream>
+#include "Garage.h"
+#include "Automobile.h"
+#include "Minivan.h"
+#include "Truck.h"
+
+int main() {
+ Garage myGarage(5);
+ myGarage.parkVehicle(Automobile("Audi", 200));
+ myGarage.parkVehicle(Minivan("Volkswagen", 126));
+ myGarage.parkVehicle(Truck("Ford", 140));
+
+ std::cout << myGarage.countOfCapableVehiclesForOrder(Highway, 200, 1)
+ << myGarage.countOfCapableVehiclesForOrder(Highway, 200, 2);
+}