diff options
Added old work from practicum 11
1 files changed, 13 insertions, 0 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/11-Practice-10.05.2022/Engine.h | 13 |
diff --git a/Year 1/Object-oriented Programming/11-Practice-10.05.2022/Engine.h b/Year 1/Object-oriented Programming/11-Practice-10.05.2022/Engine.h new file mode 100644 index 0000000..fd188f9 --- /dev/null +++ b/Year 1/Object-oriented Programming/11-Practice-10.05.2022/Engine.h @@ -0,0 +1,13 @@ +#include "CarPart.h" +#include <istream> +#include <ostream> + +class Engine : CarPart { + unsigned short horsepower; + +public: + Engine(); + Engine(unsigned short horsepower); +}; + +std::ostream& operator<<(std::ostream& ostr, const Battery& bat); |
