Write a statement that a member function can use to return the entire object of which it is a member, without creating any temporary objects. Write a definition for an array arr of 8 pointers that point to variables of type float. Explain the difference between the assignment operator and a copy constructor. Write a template for a class of specified type that accumulates values. Functions to be supported are add which adds its single parameter to the so far accumulated value, and print which displays the so far accumulated value.
Specified types are limited to int, long, and double.
The value to return is the square root of the sum of the squares of the values in r and j. 16. Write the statements that need to be included in the class complex above to convert a double value into a complex object. Both classes have explicit default constructors. Both classes have explicit destructors. Use the class complex above to as an example of your answer.