Subject |
lack |
have |
be |
is a synonym of |
store |
is a kind of |
is a subtopic of |
implement |
have form |
perform |
place in |
has definition |
use |
order |
inherit |
extend |
have high cohesion |
create using |
Java class | side effects if it does not modify any data, and does not leave behind any information, other than its result, that would have an effect on other computations | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | abstract if it has one or more abstract methods | | in a file of the same name | Java module | The Basics of Java | particular low-level subsystems | class classname { // declarations of variables // declarations of constructors (discussed below) // declarations of other methods with public ones first } | a special-purpose function such as the user interface for a particular system | its own source file | | an implements clause to declare that it contains methods for each of the operations specified by the interface | elements as follows: - class variables
- instance variables
- constructors
- the most important public methods
- methods that are simply used to access variables
- private methods
| | only one superclass | if related aspects of a system are kept together in this module, and unrelated aspects are kept out | |
subclass | | a comment at the top describing the purpose of the class, how it should be used, its authors and its history of modification | the unit of data abstraction in an object-oriented program | derived class | | class | 2.5 - Organizing Classes Into Inheritance Hierarchies | | | | | A class that is an extension of another class, and hence inherits from the other class | | | all instance variables and methods defined in its ancestor classes | | | |
Java subclass | side effects if it does not modify any data, and does not leave behind any information, other than its result, that would have an effect on other computations | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | abstract if it has one or more abstract methods | | in a file of the same name | subclass | The Basics of Java | particular low-level subsystems | class classname { // declarations of variables // declarations of constructors (discussed below) // declarations of other methods with public ones first } | a special-purpose function such as the user interface for a particular system | its own source file | | an implements clause to declare that it contains methods for each of the operations specified by the interface | elements as follows: - class variables
- instance variables
- constructors
- the most important public methods
- methods that are simply used to access variables
- private methods
| all instance variables and methods defined in its ancestor classes | only one superclass | if related aspects of a system are kept together in this module, and unrelated aspects are kept out | the extends keyword |