AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Greenfoot class documentation4/9/2023 In Greenfoot you can only access the methods of the current class? Mark for ReviewĤ. From your Greenfoot lessons, abstraction techniques can only be used once in a class's source code. In Greenfoot, you can cast an Actor class to a World class? Mark for ReviewĢ. When the Act button is clicked in the environment, the methods in the method body of the act method are executed. In Greenfoot, methods can be called in the act method. In the Greenfoot IDE, an instance's position is on the x and y coordinates. In Greenfoot, the move method expects what type of information in its parameters? Mark for Reviewġ3. In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass's source code. (*)Ī single person is a superclass of the human subclass. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for ReviewĪ computer is a subclass of a video game superclass.Ī dog is a subclass of the cat superclass.Ī rose is a subclass of the flower superclass. In Greenfoot, a subclass is created by right-clicking on a superclass. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for ReviewĨ. Returns a random number between zero and the parameter limit. Returns a random number for instances in the animal class only. Returns a random coordinate position in the world. Public static int getRandomNumber (int limit) Mark for Review Using your Greenfoot experience, what does this method do? Which of the following comparison symbols represents equals? Mark for ReviewĦ. In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class? Mark for Review From your Greenfoot lessons, where do you review a class's inherited methods? Mark for ReviewĤ. From your Greenfoot lessons, what are the ways that you can view a class's methods? Mark for Review From your Greenfoot lessons, a problem statement defines the purpose for your game. In reference to Greenfoot, if the following method was defined in a superclass,Īll subclasses of the superclass will inherit the method.ġ. (*)Ī defined method only relates to the World class.ġ5. In Greenfoot, which of the following statement is true about Defined Methods? Mark for ReviewĪ defined method is automatically executed once created.Ī defined method is only relevant to the Greenfoot Development team.Ī defined method must be called by your source code, normally in the Act method. Defined methods are methods that are only created by the Greenfoot development team? Mark for Review 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ġ3. Writing more generic statements to handle the creation and positioning of many objects is one Abstraction technique? Mark for Reviewġ2. Which of the following Greenfoot logic operators represents "not"? Mark for Reviewġ0. (*)Ĭompares two boolean values, and returns a boolean value which is true if and only if one of its operands are true.ĩ. In the Greenfoot IDE, what does the AND operator (&) do? Mark for ReviewĬompares two boolean variables or expressions and returns a result that is true if either of its operands are true.Ĭompares two boolean values and returns a boolean value which is true if either one of the operands is true.Ĭompares two boolean values, and returns a boolean value which is true if and only if both of its operands are true. From your Greenfoot lessons, what types of values cannot be stored in a local variable? Mark for Review In Greenfoot, which class has methods that allow you to get the status of the mouse? Mark for Review In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. SetImage (new GreenfootImage("Bee01.png")) Mark for ReviewĤ. From your Greenfoot lessons, what is the parameter of the following constructor that creates a new image, and designates it to the Actor class? Which Greenfoot control operator is used to test if two values are equal? Mark for Review In Greenfoot, constructors can be used to create new instances of objects.
0 Comments
Read More
Leave a Reply. |