From e4f64cec4b7c85b1e39c221a57bcab4cb1980d7d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 25 May 2022 19:59:57 +0300 Subject: Added old work from practicum 11 --- .../11-Practice-10.05.2022/CarPart.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Year 1/Object-oriented Programming/11-Practice-10.05.2022/CarPart.h (limited to 'Year 1/Object-oriented Programming/11-Practice-10.05.2022/CarPart.h') diff --git a/Year 1/Object-oriented Programming/11-Practice-10.05.2022/CarPart.h b/Year 1/Object-oriented Programming/11-Practice-10.05.2022/CarPart.h new file mode 100644 index 0000000..9b26d88 --- /dev/null +++ b/Year 1/Object-oriented Programming/11-Practice-10.05.2022/CarPart.h @@ -0,0 +1,15 @@ +#include "String.h" +#include +#include + +class CarPart { + unsigned id; + String manufacturer; + String description; + +public: + CarPart(); + CarPart(unsigned id, String manufacturer, String description); +}; + +std::ostream& operator<<(std::ostream& ostr, const Battery& bat); -- cgit v1.3.1-26-gb76a