Professional Documents
Culture Documents
Class Relationships - Summary
Class Relationships - Summary
Object Sharing Sub-objects instantiated An object may be Parts may belong to Parts belong to one Independent may be used
from parent class are associated with many multiple wholes whole by multiple dependents
embedded in a single objects
child-class object
Implementation Keyword / Class scope variable in Class scope variable in Class scope variable in Local variable or
special syntax (not used both classes whole class only whole class only argument in dependent
for other purposes) class function or method
Java extends Reference variable Reference variable final reference variable Reference variable
UML representation
Class Relationships
1. Inheritance (also known as Generalization)
2. Association
3. Aggregation
4. Aggregation
5. Dependency (also known as using or delegation)