DEV Community

Discussion on: Class Diagrams Relationships

Collapse
 
femolacaster profile image
femolacaster • Edited

Yeah. The concept could also be thought this way - by relating them to nouns.

Class/Object -Noun. E.g. person, gadgets.

Association-Verbs. E.g charges which is the link between person and gadget. Person charges gadgets.

Composition-Possessive adjective. E.g. My phone. The only reason your phone is in existence is because you which is a noun exist.

Aggregation-Descriptive adjective. E.g. Beautiful phone or Ugly phone. The extra description doesn't make it less of a phone or doesn't make the phone seize to exist. It's still a phone.

Generalization-Common nouns. E.g. Laptops, phones are all gadgets.

Specialization- Proper noun. E.g. Femi. Consolata. Abisola. HP laptop 5216.

Collapse
 
consolatacleah profile image
consolata gicheru

This is really awesome @femolacaster 🥳🥳