|
|
ostream operator<<(ostream&, Smoothie& s); // Note: , starts a new parameter ostream operator<<(ostream&, const Smoothie& s); friend ostream& operator<<(ostream& oss, const Smoothie& s); inside the class either private or public |
|
One way to do it is declarefriend ostream& operator<<(ostream& oss, const Smoothie& s); inside the class either private or public |