Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 11-Practice-10.05.2022 / CarPart.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/CarPart.h15
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 <istream>
+#include <ostream>
+
+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);