Chapter 11 Flashcards
abstract class
A class that defines attributes and methods for subclasses but is never instantiated. (384)
abstract method
A method that is specified but not implemented in an abstract class. The subclasses must implement this method. (406)
aggregation
A relationship between two classes in which instances of one class are contained in an instance of the other class. (414)
aliasing
When more than one variable points to the same object. (427)
class (static) method
A method that is invoked when a message is sent to a class. For example, Math.sqrt is a class method. (384)
class (static) variable
A variable that is visible to all instances of a class and, if public, is accessed by specifying the class name. (384)
concrete class
A class that can be instantiated. (406)
dependency
A relationship between two classes in which an instance of one class uses an instance of the other class to perform a task. (414)
final method
A method that cannot be overridden by a subclass. (407)
inheritance
The process by which a subclass can reuse attributes and behavior defined in a superclass. (384)
interface
A Java file that simply specifies the methods to be implemented by another class. A class that implements several interfaces can thus adopt the behavior of several classes. (391)
overriding
The process of re-implementing a method already implemented in a superclass. (413)
postcondition
A statement of what is true after a certain action is taken. (418)
precondition
A statement of what is true before a certain action is taken. (418)