Scala, Design Patterns, Programming, Factory Pattern.
implementations can be used together. This pattern deals also with the complexity of object creation as no parameters are needed for instantiating each concrete Product implementations and the complexity of obtaining the parameters is also managed transparently for the client. Also validation of