Instantly share code, notes, and snippets.

What would you like to do?
Use composition over inheritance

Composition over Inheritance

"Inheritance encourages you to build this taxonomy of objects very early on in the project. And you are most likely going to make big design mistakes while doing that. Because humans cannot predict the future."

"I think it's just better to use composition from the start. It's more flexible, it's more powerful, and it's really easy to do."

-- Mattias P Johansson, @mpjme

FunFunFunction - Composition over Inheritance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment