4. Working with Classes : Inheritance : Class Relationships
 
Share this page                  
Class Relationships
You can create user classes to structure your organization's data into objects. These objects, with all of their characteristics and behaviors built in directly, can serve as the basis for your applications.
Before creating classes to represent your data, you must understand the two basic kinds of relationships between classes. Only after you have clearly identified a class and its relationships to other classes can you best define attributes and methods at the most general level. These kinds of relationships are:
Inheritance Hierarchy (or Generalization/Specialization)
Aggregation (or Containing)