Scala, Design Patterns, Programming, Factory Pattern.
but a concrete example is shown in the next diagram. In this diagram a factory it’s implemented called RederFactory used to instantiate different implementations of Reader: csvReader, jsonReader and parquetReader. Each of them with its concrete implementation of the open procedure. This is called