The end result

After all this code is written, we will end up with the following tree in our IDE:

You can see that our code also contains unit tests. We will spend some time on them in the next subsection.

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.