CS 160



Today we did more on passing by reference and we brought in keyword this section 8.4.
Last Friday we started a discussion on passing by reference which we used arrays for an example, today we are using objects. (Last program).
Here is my example to last week's inlab. I probably won't have time to cover it in class, but here it is. I started covering it on Friday. InLab.java
Driver.java
Second program is the completion of the Turtle program from the problems in chapter 7. (7.21 in the seventh and sixth editions). Turtle.java
An example of using keyword this ThisDriver.java
ThisExample.java
SecondClass.java
An example of passing Objects to methods. Passing by Reference. Animal.java