Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
21 Cards in this Set
- Front
- Back
The data stored in an object. |
A field |
|
The operations that an object can perform. |
Methods |
|
What is a class? |
A code that describes a particular type of object, like a blueprint for a house. |
|
A class is a description of what? |
An object. |
|
What does Random rand declare in Random rand = new Random ();? What does the "new" operator do? What does new Random (); do? |
"Random rand" declares a variable, rand. The "new" operator creates an object in memory, and the "new Random ();" creates an object from the Random class and returns that object's memory address. |
|
When each instance of a class has its own variables, what are they known as? |
Instance variables |
|
What does every instance of a class have? What can it store? |
It has its own set of instance fields and can store its own values in those fields. |
|
What are the methods that operate an instance of a class known as? |
Instance methods |
|
What is a method that is automatically called when an instance is created? |
A constructor |
|
A variable that does not hold an object's address but does initialize with an object is called a what? |
Uninitialized reference variable |
|
What must happen to a local reference variable before it can be used? |
It must reference an object |
|
What is it called when multiple methods in the same class have the same name, but use different types of parameters? |
It is overloaded |
|
What is the process of matching a method call with the correct method? |
Binding |
|
What is it called when a local variable or parameter had the same name as a field? |
Shadowing |
|
A thing that accepts a field but didn't change its value. |
An accessor |
|
A thing that accepts a field but changes its value |
A mutator |
|
What is a a description of an object called, like a blueprint for a house? |
A class |
|
Encapsulation, polymorphism, and inheritance are three things in what? |
Object-Oriented Programming |
|
What is it called when you hide/protect data from one place to another? |
Encapsulation |
|
What is it called when using code that can take many forms? |
Polymorphism |
|
What is it called when things are inherited from a parent class to a child class to be reused? |
Inheritance |