Chapter 3: Implementing Classes Flashcards
instance variables
A variable defined in a class for which every object of the class has its own value.
access specifier
A reserved word that indicates the accessibility of a feature, such as private or public.
type
A named set of values and the operations that can be carried out with them.
return value
The value returned by a method through a return statement.
encapsulation
The hiding of implementation details.
body
All statements of a method or block.
constructor
A sequence of statements for initializing a newly instantiated object.
no-argument constructor
A constructor that takes no arguments.
public interface
The features (methods, variables, and nested types) of a class that are accessible to all clients.
documentation comments
A comment in a source file that can be automatically extracted
into the program documentation by a program such as javadoc.
javadoc
The documentation generator in the Java SDK. It extracts documentation comments from Java source files and produces a set of linked HTML files.
parameter variable
A variable of a method that is initialized with a value when the method is called.
constructor
A sequence of statements for initializing a newly instantiated object.
unit testing
Testing a method by itself, isolated from the remainder of the program.
local variable
A variable whose scope is a block.