Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
singleton delegate instance in order to provide clients with different instances that access the behavior of a unique object. The following it’s the implementation of these classes abstract class EC2Con { val id: Int def connect: String } private[complex] class EC2MemOpt extends EC2Con { override