I have 2 c++ classes where one is a base class of the other (public inheritance). I have the << operator overload done in both. What I want is to use << of the sub class with the << of the base class.

It's that possible?

I mean, imagine that base class << overload print's "Hi, my name is Rui" and I want that sub class << overload prints "Hi, my name is Rui\nIt's sunny today".

Thanks