1. _______ have data (fields) and behavior (methods) and do the work in an object-oriented program. ________ are created by classes.
2. A class defines the data (fields) and behavior (methods) for all objects of that class. You can create ____________ from the same class.
3. Analyse the following example (greenfoot java interface). Which of the following statements is true?
4. Which statement would we use to create an object from ExampleClass?
5. Is the following statement true or false?
6. Is the following statement true or false?
7. The following provides three true statements about all objects. Statement no.3 is referring to an object's ____________.
8. In Java, a piece of data either is a _______ data type or is an object data type.
9. Of the following items on the list, the data types 'String', 'Random' and 'Scanner' can also be classified under 'class', where as the other ones are primitive data types.
10. A class is a description of a kind of object. A programmer may define a class using Java, or may use ___________ that come in class libraries.
11. Read the following and fill in the blanks.
A class is merely a plan for a possible object.
It does not by itself create any objects.
When a programmer wants to create an object the ____ operator is used with the name of the class.
12. What does the following code do?
13. An object consists of both data and methods. The following image illustrates a conceptual object that is likely to be a:
14. Referring to the image above, decide if the following statement is true or false. "The picture represents an object of class String"
15. A class is the formal implementation, or ___________, of the attributes and behaviors of an object.