Association/Aggregation/Composition/Generalization simple example

Association

Relationship between two objects (one to one, one to many, many to many etc)

Aggregation

Aggregation is a kind of association, which refers Has a relationships.

Example: Building has a room

 Composition

It is a kind of Aggregation but when an object contains another object the contained object cannot exists without the container object
Example: Room cannot exist without building

Generalization

Generalization refers to Is a relation ship (Inheritance)
Example, Car is a Vehicle, Bus is a Vehicle

 

No comments:

Post a Comment

Confusion Matrix + Precision/Recall (Super Simple, With Examples)

  Confusion Matrix + Precision/Recall (Super Simple, With Examples) 1) Binary Classification Setup Binary classification means the model p...

Featured Posts