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;
23 Cards in this Set
- Front
- Back
What are the two functions of objects |
Store data and perform operations |
|
What are variables |
Storage locations in a computers memory |
|
What is the variable used to locate a string literal called |
String object |
|
What is a class |
Code that describes a particular type of object |
|
Is a class an object |
No but it is a blueprint of an object |
|
What does UML stand for |
Unified modeling language |
|
What are the 3 layers of a uml diagram |
Class name, attributes, methods |
|
The attributes and methods that belong to a class are referred to as class |
Members |
|
A method that gets a value from a clases field but does not change it is known as an |
Accessor method |
|
What does it mean for a item to become stale |
When the value of an item is dependent on other data and that item is not updated |
|
What does passed by value mean |
A copy of an arguments value is passed into a parameter variable |
|
When is the default constructor used |
Java auto puts it in when there is no constructor in the clas |
|
Variables declared inside a method are known as |
Local variables |
|
Variables that are declared within a class but aren’t in any method are known as |
Fields |
|
Variables that are declared inside the parentheses of a method header are known as |
Parameter variables |
|
What is a local variables scope |
Those method in which it is decalred |
|
What is a fields scope |
The entire class in which it is declared |
|
What is a parameter variables scope |
The method in which it is declared |
|
Shadowing is when |
You declare a new variable in a class with the same name as a field and then it puts the value not in the field |
|
Steps to finding the classes in a given problem |
Get a description of the problem domain, identify all the nouns in the description, refine the list to include only the classes that are relevant to thebproblem |
|
What is the problem domain |
Set of objects related to the problem |
|
Method that gets a value from a classes field but doesn’t change it |
Accessor |
|
Method that stores a value in a field and changed it |
Mutator |