Last week, we started creating a rudimentary calculator to do simple addition. We made it fairly far, but discovered that we really don’t know how to identify methods, or create them.
This week, we’ll do some exercises to learn how to create our own methods and identify what arguments they take and what they return, just by looking at their signature.
We will also go over the term “scope,” and learn how scope impacts our variables when creating methods and control structures.
Here is the completed ComplexAdder.