Ch. 11 Flashcards

1
Q

Class

A

A collection of related methods, but also a template for a new type of object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Instance

A

A member of a class. Every object is an instance of some class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Instantiate

A

Create new instance of a class in a computer’s memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Instance Variable

A

An attribute of an object; a non-static variable defined at the class level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Information Hiding

A

The practice of making instance variables private to limit dependencies between classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Constructor

A

A special method to that initializes instance variables of a newly-constructed object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Shadow

A

Defining a local variable or parameter with the same name and type of an instance variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Client

A

A class that uses objects defined in another class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Getter

A

A method that returns the value of an instance variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Setter

A

A method that assigns a value to an instance variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Override

A

Replacing a default implementation of a method, such as toString

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Instance Method

A

A non-static method that has access to “this” and the instance variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Identical

A

Two values that are the same; in the case of objects, two variables that refer to the same object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Equivalent

A

Two objects that are “equal” but not necessarily identical, as defined by the equals method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Pure Method

A

A static method that depends only on its parameters and no other data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Modifier Method

A

A method that changes the state (instance variables of an object)