Inheritance VS composition: pros and cons.
Anonymous
Inheritance should be used only if we can describe a relationship with a phrase like "X is a Y", like "student is a person". In all other cases composition/aggregation should be used.
Check out your Company Bowl for anonymous work chats.