hey eveyrone, im doing this program on polymorphism, and what i was using to print out all the of the information was a print function and it looked like this

virtual void print() const;

and that worked, but now i found out my teacher wants us to use the overloaded ostream operator to print out everything but when i tried this

virtual friend ostream&operator(ostream&,Time&);

it gave me an error.
please help, thanx a lot :-)