
The name of the class that will use the key. The name of the sound file to play when the key is pressed.
#Greenfoot actor api password#
The password that will protect the class. The name of the key to press on the keyboard. In Greenfoot the showText() method belongs to which class? Mark for ReviewĨ. Use your Greenfoot knowledge to answer the question: Where are defined variables typically entered in a class's source code? Mark for ReviewĪfter the constructors and methods in the source code.Īt the top of the source code, before the constructors and methods.

(*)īetween the constructors and methods in the source code. Where can we review the available classes and methods in Greenfoot, including the stop method? Mark for Review In the defined method in the source code.ĩ.

Greenfoot Application Programmers' Interface (API) (*)Ĭlass Application Programmers' Interface (API)ġ0. In Java what is casting? Mark for ReviewĬasting is when we remove an object from the worldĬasting is when we want to tell the java compiler that a class we are accessing is really another type of class (*)Ĭasting is when we reset the state of an instance.Ĭasting is when we change the coordinates of an actorġ1. Use your Greenfoot knowldege: If an Actor class Fly has a variable defined to store the current speed, which of the following statements would successfully add a Fly and define the current speed as 2? Mark for Reviewġ2. Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. From your Greenfoot lessons, which symbol represents string concatenation? Mark for Review In Greenfoot, which statement is a correct example of string concatenation? Mark for Reviewġ4. Which of the following comparison symbols represents equals? Mark for ReviewĦ. In Greenfoot, the turn method expects what type of information in its parameters? Mark for Review In Greenfoot, you can use comparison operators to compare a variable to a random number. In Greenfoot, the body of the method is located in between which of the following characters? Mark for Reviewĩ. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review In Greenfoot, the move method expects what type of information in its parameters? Mark for Reviewġ0.
