Unit 2: Objects

Variables can point to specific objects to read and write information to and from them.
In this unit, we explored basic objects, such as strings, and the 'java turtle library'. We practiced tracing code to visualize the changes in the perameters of objects. Below is an example of initializing an unspecified object and reading data from it.
Object1 testObject = new Object1(Color.YELLOW);


The 'House Project'
The project for this unit was to use the JavaDraw library to create a dynamically-scalable house by making a method. We also had to include some basic customization perameters involving a changable color and scaling options. The house that my partner and I created can be seen below. You can also view the code for the project here.

Back