public: virtual void setCd(CdPlayer* cd) { std::cout << description << " setting CD player to " << cd->toString() << std::endl; this->cd = cd; }