3 ms·
Right. Inheritance implies contracts that include behavior, composition implies contracts that don't. I talk of greenfielding because it's rare that the inheri
by squirrelicus 8y ago
Right. Inheritance implies contracts that include behavior, composition implies contracts that don't.
I talk of greenfielding because it's rare that the inheritance alone holds a codebase back so much that it needs to be rewritten. But code I originate is always composition based