a. Redo Programming Exercise 3 by overloading the operators as nonmembers of the class boxType.
b. Write a test program that tests various operations on the class boxType.
REFERENCE:
a. Chapter 11 defined the class boxType by extending the definition of the class rectangleType. In this exercise, derive the class boxType from the class rectangleType, defined in Exercise 1, add the functions to overload the operators +, -, *, ==, !=, <=, <, >=, >, and pre- and post-increment and decrement operators as members of the class boxType. Also overload the operators << and >>. Overload the relational operators by considering the volume of the boxes. For example, two boxes are the same if they have the same volume.
b. Write the definitions of the functions of the class boxType as defined in part a.
c. Write a test program that tests various operations on the class rectangleType.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.