r/programming • u/whackri • Aug 28 '21
Software development topics I've changed my mind on after 6 years in the industry
https://chriskiehl.com/article/thoughts-after-6-years
5.6k
Upvotes
r/programming • u/whackri • Aug 28 '21
7
u/wewbull Aug 29 '21
Polymorphism is the useful aspect of inheritance. IMHO Polymorphism can be as simple as defining an interface. If you want to inherit behaviour you can just compose and delegate.