Home » Previous Subjects » Fall 2013 – Subjects » Week 4 — Creating Methods and Scope

Week 4 — Creating Methods and Scope

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.

Leave a Reply

Your email address will not be published. Required fields are marked *