logoalt Hacker News

yxhuvudlast Wednesday at 4:21 AM1 replyview on HN

Why on earth do you put composition and OOP as opposing techniques? Composition is just one more technique in the OOP toolbox and there is nothing in OOP that mandates an inheritance based architecture.


Replies

crabmusketlast Wednesday at 5:52 AM

Mainstream OOP languages (looking at you Java) have failed to make composition as convenient as inheritance.

show 4 replies