Wrapping Up

Pragmatic Scala — by Venkat Subramaniam (72 / 140)

👈 Method Late Binding in Traits | TOC | Chapter 8 Collections 👉

In this chapter, we explored an interesting and powerful Scala feature that promotes extensibility. Traits are a great design tool to create extensible code with dynamic behavior beyond what’s provided by one single class. They nicely avoid method collisions when multiple implementations are brought together. You saw how powerful patterns like the Decorator pattern can be elegantly implemented with traits.

--

--

--

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.

Recommended from Medium

Support the Entire HTML Spec with Macros

Generate Self-Signed Certificate With Powershell

Why Ionic Platform Is The First Choice For Mobile Application Development

Making Decisions in Python

DinoX Beta Pre-IDO Event — Update

JOKER — HTB walkthrough

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
The Pragmatic Programmers

The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.