I have a class funtion that displays output.
now I have to overload << in this function
num and dem are private data members.
This function is in a class fraction.
how do I set this up.
before I would call this function like:
fraction f1(2,4); //sets num=2 dem=4
f1.display; //this would display 2/4
Please point me in the right direction.