Problem Statement: Multiplication of two objects of same class
• You are required to write a class. Class should have an array of 10 integers as its private data member.
Class should have
• A default constructor which will initialize all array elements with zero.
• Getter and setter functions
• An operator overloading function which will overload * operator for this class.
You are required to create three objects of the same class.
You must assign values to first and second objects through setter functions. You can either take input arrays from user or use hard coded values.
Display the values of first and second object through getter functions.
Multiply both objects and store the result of multiplication in third object.
Multiplication means the 1st element of member array of object1 should be multiplied by 1st element of member array of object2. Similarly, 2nd element should be multiplied with 2nd and so on. In the end, display the result stored in third object.
Your program should support the statement like a = b * c, where a, b and c are objects of the same class.
Aw... I really wanted to compile it and see if it works but I don't have boost (and probably neither the OP does). Would you mind editing it into a boost-free version???
lol ... perhaps later, because I didn't keep the original implementation. Or someone else could,
if they know the trick to de-obfuscation. (I wonder if OP does).