Wednesday, May 19, 2010

Operator functions as friend functions

Share Orkut
12. In a class distance is measured in feet and inches unit. Use operator overloading, + operator for adding two distances and < operator for comparing two distances(implement operator functions as friend functions).

No comments:

Post a Comment