Scala, Design Patterns, Programming, Factory Pattern.
following diagram. The Options abstract class and its implementation are the following. abstract class Options { def getOptions(): String } class csvOptions extends Options { override def getOptions(): String = "csv options specific for csv files" } class jsonOptions extends Options { override def