I have the function below in three base classes, one base, then one derived, and another derived from the second. I'm getting external resolution errors when I try to build it.
virtual void printtostream(ostream& out);
//Since it is a virtual function the above was not defined in any of the class definitions.
//My function, right before main, is this
ostream& operator << (ostream &out, telnumber &tn)
{
tn.printtostream(out);
return out;
}
This gives me three external resolution errors. What am I forgetting to do?