4) Addition – To add two quaternions you have to add the corresponding components. Thus (1.1, 2.2, 3.3, 4.4) + ( 1, -1.2, 4.4, 10) = (2.1, 1, 7.7, 14.4).
Implement both the += operator and the binary + operator. The += should be a member function. The operator+ function can’t be a member or a friend function.
okay well i'm still pretty newbie to this whole c++ thing, but i've made a class for the quaternions, and i just simply don't know how to overload the + operator without making it a member or a friend..how would i access the private members of the class if it's neither of those???
assignment due soon so any help or just anything to get me started would be great, - thanks