Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 11-Practice-10.05.2022 / Tire.h
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--Year 1/Object-oriented Programming/11-Practice-10.05.2022/Tire.h15
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 <istream>
+#include <ostream>
+
+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);