dagblog.
← Archive

Inheritance vs. implementation


In his article Why extends is evil,
 Allen Holub examines inheritance (extends) versus implementation (implements). Among other things, he argues that more than 80 percent of code can be
 rewritten (wired together) using an interface instead of a concrete parent class. The main disadvantages of inheritance, meaning the use of a parent class, include
 unnecessary coupling between objects and a loss of flexibility.

Medium version

Related articles

Related CZ Podcast episodes