Checkpoint 14.6.1.
This active code uses the
add
function for Complex
objects. As an exercise, write the subtract
function for Complex
objects in the commented area of the active code. If you get stuck, you can reveal the hint below for help. Once you are finished, feel free to modify the code and experiment around!