1 2 3 4 5 6 7 8 9 10 11 12 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);