diff options
Added my prep work for exam2
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/Exam 2 Preparation/Automobile.h | 9 |
diff --git a/Year 1/Object-oriented Programming/Exam 2 Preparation/Automobile.h b/Year 1/Object-oriented Programming/Exam 2 Preparation/Automobile.h new file mode 100644 index 0000000..a468f2d --- /dev/null +++ b/Year 1/Object-oriented Programming/Exam 2 Preparation/Automobile.h @@ -0,0 +1,9 @@ +#include "Vehicle.h" + +class Automobile : public Vehicle { +public: + Automobile(String brand, unsigned maxSpeed); + + unsigned getSpeedOnRoad(Road road) const override; + Automobile* clone() const override; +}; |
