Chapter 1: objects Flashcards

(11 cards)

1
Q

Object

A

An individual instance of a class. An object can only exist during runtime.

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

Method

A

Specifies the actions of an object

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

parameter

A

Variable passed to a method that provides more information for the method

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

Signature

A

Combination of identifiers, return value, name and parameters of a method. Example: public int calculateMonth(String name)

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

Type

A

Specifies what kind of thing a variable or a parameter is. eg int, char, boolean

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

Instance

A

An object

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

Multiple instances

A

The case when there are multiples objects from the same class instantiated at runtime

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

State

A

The values of all of the variables in an object at a given time

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

Return value

A

The value that comes back from a method after it is run. In the following method: public int calculateMontth(String name), the return value is an integer

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

field

A

A variable that belongs to the entire class (not just a method)

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

Class

A

defines the characteristics and actions of an object. Models things from the problem domain.

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