Chapter 8: Designing Classes Flashcards
cohesive
A class is cohesive if its features support a single abstraction.
Unified Modeling Language
A notation for specifying, visualizing, constructing, and documenting the artifacts of software systems.
accessor method
A method with a name, parameter variable types, and return type but
without an implementation.
mutator method
A method that changes the state of an object.
immutable class
A class without a mutator method.
side effect
An effect of a method other than returning a value.
static variable
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 method
A method with no implicit parameter.
package
A collection of related classes. The import statement is used to access one or more classes in a package.