Scala, Design Patterns, Programming, Factory Pattern.
to provide this method to the abstract Reader class and through all other implementations of Reader. Abstract Factory The abstract factory is the second pattern from the factory patterns. The purpose of this pattern as with the rest of factory patterns it’s encapsulating the logic of the object