Chapter 8 - Objects and Classes Flashcards

1
Q

A programmer-defined data type.

A

class

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

The features (methods, variables, and nested types) of a class that are accessible to all clients.

A

public interface

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

The hiding of implementation details.

A

encapsulation

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

A variable defined in a class for which every object of the class has its own value.

A

instance variables

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

A reserved word that indicates the accessibility of a feature, such as private or public.

A

modifier

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

A named set of values and the operations that can be carried out with them.

A

type

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

A method with an implicit parameter; that is, a method that is invoked on an instance of a class.

A

instance methods

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

The features (methods, variables, and nested types) of a class that are accessible to all clients.

A

public interface

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

A method that changes the state of an object.

A

mutator

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

A method that accesses an object but does not change it.

A

accessor

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

A variable defined in a class for which every object of the class has its own value.

A

instance variable

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

The object on which a method is invoked. For example, in the call x.f(y), the object x is the implicit parameter of the method f.

A

implicit parameter

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

A parameter of a method other than the object on which the method is invoked.

A

explicit parameter

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

A sequence of statements for initializing a newly instantiated object.

A

constructor

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

Giving more than one meaning to a method name.

A

overloaded

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

N/A

A

unit testing

17
Q

A value that denotes the location of an object in memory. In Java, a variable whose type is a class contains a reference to an object of that class.

A

object reference

18
Q

A variable defined in a class that has only one value for the whole class, and which can be accessed and changed by any method of that class.

A

static variable

19
Q

A method with no implicit parameter.

A

static method

20
Q

Designing a program by discovering objects, their properties, and their relationships.

A

Object-oriented programming