Chapter 6 Flashcards
accessor
A method used to examine an attribute of an object without changing it. (188)
actual parameter
A variable or expression contained in a method call and passed to that method. (205)
behavior
The set of actions that a class of objects supports. (186)
constructor
A method that creates a new instance of a class. (188)
encapsulation
The combining of data and behavior into a single software package. (186)
helper method
A method used within the implementation of a class but not used by clients of that class. (207)
identity
The property of an object that it is the same thing at different points in time, even though the values of its attributes might change. (186)
instantiation
The process of creating a new object. (186)
lifetime
The period during which a variable can be used. (205)
mutator
A method used to change the value of an attribute of an object. (188)
scope
The largest area of program text in which an identifier is available. (204)
state
The set of all the values of the variables of a program at any point during its execution. (186)
visibility modifier
A symbol (public or private) that specifies the kind of access that clients have to a class’s data and methods. (193)