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/Tire.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Year 1/Object-oriented Programming/11-Practice-10.05.2022/Tire.h (limited to 'Year 1/Object-oriented Programming/11-Practice-10.05.2022/Tire.h') diff --git a/Year 1/Object-oriented Programming/11-Practice-10.05.2022/Tire.h b/Year 1/Object-oriented Programming/11-Practice-10.05.2022/Tire.h new file mode 100644 index 0000000..6855d04 --- /dev/null +++ b/Year 1/Object-oriented Programming/11-Practice-10.05.2022/Tire.h @@ -0,0 +1,15 @@ +#include "CarPart.h" +#include +#include + +class Tire : CarPart { + unsigned short width; + unsigned short profile; + unsigned short diameter; + +public: + Tire(); + Tire(unsigned short width, unsigned short profile, unsigned short diameter); +}; + +std::ostream& operator<<(std::ostream& ostr, const Battery& bat); -- cgit v1.3.1-26-gb76a