I have recently created three video clips that explain fundamental topics related to defining classes in Scala. These clips were created as part of the ‘Scala Fundamentals’ course, available for free personal and academic usage at www.abelski.com.
The Visitor Design Pattern
The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.