operator overloading + (adding values of arrays)

im trying to overload + operator;

i have done a several time with simple objects for example

PROTOTYPE: friend className operator + (const className &classObj , const className &classObj);


DEFINATION:
1
2
className operator +(const className &classObj , const className &classObj )
 {return (classObj.classMember+classObj.classMember);}



now i want to the same for 2 arrays initialized as class members
how can i do that,

what i need to achieve in the end is to + two values in the arrays(initialized as PRIVATE MEMBERS of the Class) using operator overloading;

THANKS
Topic archived. No new replies allowed.