// ----------------------------------------------------------------------------- class Movie : public Title { protected: unsigned short length_; public: Movie( const std::string& name, unsigned short year, const std::string& genre, unsigned short rating, const std::set& actors, unsigned short length ); Movie( std::string&& name, unsigned short year, std::string&& genre, unsigned short rating, std::set&& actors, unsigned short length ); unsigned short length() const; }; // ----------------------------------------------------------------------------- class Series : public Title { protected: unsigned short seasons_; unsigned short episodes_; public: Series( const std::string& name, unsigned short year, const std::string& genre, unsigned short rating, const std::set& actors, unsigned short seasons, unsigned short episodes ); Series( std::string&& name, unsigned short year, std::string&& genre, unsigned short rating, std::set&& actors, unsigned short seasons, unsigned short episodes ); unsigned short seasons() const; unsigned short episodes() const; }; // ----------------------------------------------------------------------------- inline unsigned short Movie::length() const { return length_; } inline unsigned short Series::seasons() const { return seasons_; } inline unsigned short Series::episodes() const { return episodes_; } // -----------------------------------------------------------------------------