Please see this : http://www.learncpp.com/cpp-tutorial/96-overloading-operators-using-member-functions/