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