Poemas
Objectives • • • • • How to download and install Greenfoot Describe the components of the Greenfoot interactive development environment Create aninstance of a class Describe classes and subclasses Recognize Java syntax used to correctly create a subclass
Vocabulary Directions: Write the definition for each vocabulary word below.
1. Morespecific types of a class. 2. The template that defines the substance of an object, such as its appearance, features, and movement. 3. The more generic, overarching class of a group of classes. 4. Anobject of the class. 5. Translates the source code into a machine code that the computer can understand. This ensures that you added the source code or class correctly before you proceed. 6. Defineswhat all instances of each class are capable of doing. The behavior of each instance is determined by the source code of its class. Try It/Solve It 1. In your journal, create an entry entitled'Greenfoot IDE'. Document five components of the Greenfoot environment and what each does. 2. In Greenfoot, create a new subclass of the Actor class. Add an image to this class one of two ways: by drawing anew image in your computer's paint program, or importing an existing image on your computer. If you cannot draw or import an image, select an image from the Greenfoot library. 3. True or false: The Runexecution control executes the statements in the act method repeatedly. 4. Create a new scenario. Create three Actor classes and one World subclass, and add an instance of each class to the world. Inyour journal, document the classes that were
added to your scenario. 5. In your journal, create an entry entitled “Class Diagram”. Create a diagram that shows the relationship between an instance,subclass, and superclass using a real-world animal or plant example. 6. In your journal, create an entry entitled “Classes”. In this entry, explain to someone who doesn't understand classes and...
Regístrate para leer el documento completo.