Scala, Design Patterns, Programming, Factory Pattern.
code that uses it. Factory Method The factory method will be the first of the factory patterns to be explained. In this pattern the client uses a factory object that instantiates different classes that inherit from a given trait or superclass. The following diagram describes this. The