Java.next, Extension without inheritance, Part 2
Explore Clojure protocols
From the developerWorks archives
Date archived: December 19, 2016 | First published: July 30, 2013
The Java™ language suffers from intentional limitations in its extension mechanisms, relying primarily on inheritance and interfaces. Groovy, Scala, and Clojure offer many more extension alternatives. This installment further explores Clojure's use of protocols as an extension mechanism.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.