CIS-260 Home http://www.c-jump.com/bcc/

Generalization, Aggregation, Association, and Cardinality


  1. Generalization, Aggregation, Association, and Cardinality
  2. Difference between inheritance and composition
  3. Modularity
  4. Types of Composition
  5. Aggregation Example
  6. Aggregation Versus Association
  7. Cardinality Notation for Associations

1. Generalization, Aggregation, Association, and Cardinality


2. Difference between inheritance and composition


  • Inheritance is an "is-a" relationship. also known as generalization.

  • For example, Employee is a Person.

  • On true contrary, composition relationship represents interaction between objects.

    inheritance relationship

3. Modularity


4. Types of Composition


5. Aggregation Example


6. Aggregation Versus Association


7. Cardinality Notation for Associations