CompSci: "OOP" Vocabulary
Across
- 5. Type of variable (also called a "reference variable") which can store lots of information, and can perform tasks (examples: String, Scanner).
- 7. Anything returned by the ____ method will print to the screen when we attempt to print our object by name
- 8. Type of variable which stores only a single value in memory, of a certain size (examples: int, char, boolean).
- 12. The term "OOP" stands for "Object ____ Programming".
- 13. This primitive data type is typically used (instead of "float") to store numbers which involve a decimal point ("floating point numbers").
- 14. A method's ____ type is the type of data left behind when the method is called (or a method could be declared "void" instead).
Down
- 1. ____ Classes (such as "Integer" or "Character") are useful for containing information about primitive types, but are actually types of objects.
- 2. A "type" of object. The code written here outlines what information an object has, and contains code for methods that the object can perform, as well as code for constructors.
- 3. A return-typed method which returns the value of an object's instance variables ("get" method).
- 4. Almost always declared as "private", and at the top of the class declaration, ____ variables hold information (either primitive data or object references) about a particular object and can be accessed by ANY method/constructor written in the class.
- 6. Code block, written in a class, which is executed when we use the "new" keyword to create an instance of an object.
- 9. A code block, written in a class. These are procedures and/or calculations which an object can perform. We often "call" these using the pattern: < object.____(--parameters--) >
- 10. (AKA Mutator) A void method which is used to change the value of instance variable(s) ("set" method)
- 11. This primitive data type can only store two possible values: true or false.