class Employee { . . . virtual void print(ostream& out) const; }; void Employee::print(ostream& out) const { out << "Employee " << name(); }