Adapted from http://www.bluej.org/resources/exercises/shapes-lab.zip by Bruce Kahn


Click on the Circle box, right-click it and choose new Circle() and then click Ok. You have just created (instantiated) your first object! The circle_1 object is placed on the object bench.


  1. Right-click the circle object (on the bench) and choose Inspect to invoke the Object Inspector. The fields listed under Object Fields are the objects attributes. Attributes define an object and are generally described by nouns. The set of all values of all attributes define an objects state.

  2. When you right-click the circle object, all the objects methods (behaviors) are listed above Inspect. Methods allow you to move and modify the object. Methods are generally described by verbs.

  3. What is the value of isVisible ? _____

  4. Right-click the circle object and choose makeVisible().

  5. What is the circle’s (x, y) position? _______

  6. Right-click the circle object and choose moveDown().

  7. What is the circle’s (x, y) position? _______ What do you expect it will be if you invoke the moveDown() method again? _____ Were you correct?

  8. Invoke the circle’s moveRight() method. What is the circle’s (x, y) position? _______

  9. Change its color.

  10. What happens when you invoke the changeColor method, and write the color into the parameter field without the quotes?

  11. What happens when you specify a color that is not known?

  12. Change its size to 10.

  13. Invoke the moveVertical() method and enter: 10. What happened to its yPosition?

  14. How could you get the circle to move up?

  15. Move the circle so it is at the upper left hand corner of the canvas.

  16. What do you think the coordinates of the upper left hand corner are? ( ____, ____ )

  17. Move it to the lower right corner of the canvas.

  18. What do you think the coordinates of the lower right hand corner are? ( ____, ____ )

  19. Position the circle to the center of the canvas