How many and what kind of variables (primitive or object) are created in the code below?
> World worldObj = new World(); // worldObj is an object variable
> Turtle turtle1 = new Turtle(worldObj); // turtle1 is an object variable
> turtle1.forward(30);
> Turtle turtle2 = new Turtle(worldObj); // turtle2 is an object variable
> turtle2.turnRight();
> turtle2.forward(30);
This creates 3 object variables.
Computer Science & Information Technology
You might also like to view...
A graphic image can be inserted into the background of a chart
Indicate whether the statement is true or false
Computer Science & Information Technology
_______ is another term for response time or how long it takes to draw a screen on an LCD
Fill in the blank(s) with correct word
Computer Science & Information Technology