OO Design Patterns: Composition Vs. Inheritance

Lucas PenzeyMoog
The Startup
Published in
7 min readJun 7, 2019

--

As seems to be the case with every apprentice’s technical blog, it’s now my turn to write-up a post comparing and contrasting two staples of Object Oriented software design: composition and inheritance.

The first language I worked in for any meaningful amount of time was Ruby, which is of course Object Oriented. Even before I really understood inheritance or composition, I heard…

--

--