“Has a” is a “Relationship”

--Originally published at diegotc2016

Has a relationship is based on object composition while is a relationship is based on inheritance. For Example:

Person                                                                  is a FootballPlayer
Has an adress

Has an age

Has a name

Has a dog

Has a helmet

Has shoulder pads

Has cleats

Has gloves

This video would get it clearer, I understood this concept thanks to this video:


“Has a” is a “Relationship”