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.
Related articles
Related CZ Podcast episodes
- #3 · Java 6 SE, Vývoj webových aplikací
Dagi and Filemon discuss Java 6 and web application frameworks. · Czech audio
- #1 · Vývojová prostředí v Javě
The first CZ Podcast episode looks at Java development environments. · Czech audio