1.2 Creating Objects

You should be seeing a window similar to that shown in Figure 1

Figure 1: The Shapes Project in BlueJ

In this window, a diagram should become visible. Every one of the colored rectangles in the diagram represents a class in our project. In this project we have classes named Circle, Square, Triangle and Canvas.

Right-click on the Circle class and choose

new Circle()

from the popup menu. The system asks you for a 'name of the instance' click Ok, the default name supplied is good enough for now.

You will see a red rectangle towards the bottom of the screen labeled 'circle_1'

Figure 2: An Object on the Object Bench