Chapter 8 - Objects and Classes Flashcards
A programmer-defined data type.
class
The features (methods, variables, and nested types) of a class that are accessible to all clients.
public interface
The hiding of implementation details.
encapsulation
A variable defined in a class for which every object of the class has its own value.
instance variables
A reserved word that indicates the accessibility of a feature, such as private or public.
modifier
A named set of values and the operations that can be carried out with them.
type
A method with an implicit parameter; that is, a method that is invoked on an instance of a class.
instance methods
The features (methods, variables, and nested types) of a class that are accessible to all clients.
public interface
A method that changes the state of an object.
mutator
A method that accesses an object but does not change it.
accessor
A variable defined in a class for which every object of the class has its own value.
instance variable
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.
implicit parameter
A parameter of a method other than the object on which the method is invoked.
explicit parameter
A sequence of statements for initializing a newly instantiated object.
constructor
Giving more than one meaning to a method name.
overloaded
N/A
unit testing
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.
object reference
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.
static variable
A method with no implicit parameter.
static method
Designing a program by discovering objects, their properties, and their relationships.
Object-oriented programming