Composition over inheritance

Favor object composition over class inheritance.

The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.

Leave a Reply

Your email address will not be published. Required fields are marked *