Chapter 3: Implementing Classes Flashcards

1
Q

instance variables

A

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

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

access specifier

A

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

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

type

A

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

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

return value

A

The value returned by a method through a return statement.

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

encapsulation

A

The hiding of implementation details.

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

body

A

All statements of a method or block.

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

constructor

A

A sequence of statements for initializing a newly instantiated object.

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

no-argument constructor

A

A constructor that takes no arguments.

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

public interface

A

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

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

documentation comments

A

A comment in a source file that can be automatically extracted
into the program documentation by a program such as javadoc.

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

javadoc

A

The documentation generator in the Java SDK. It extracts documentation comments from Java source files and produces a set of linked HTML files.

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

parameter variable

A

A variable of a method that is initialized with a value when the method is called.

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

constructor

A

A sequence of statements for initializing a newly instantiated object.

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

unit testing

A

Testing a method by itself, isolated from the remainder of the program.

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

local variable

A

A variable whose scope is a block.

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

garbage collector

A

Automatic reclamation of memory occupied by objects that are no longer referenced.

17
Q

initialize

A

Set a variable to a well-defined value when it is created.

18
Q

implicit parameter

A

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.

19
Q

explicit parameters

A

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