Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
id ${id} destroyed") } private[complex] class EC2ComOpt extends EC2Con { override val id = 2 override def connect: String = s"singleton EC2ComOpt connection with session id ${id} established" def create: Unit = System.out.println(s"singleton EC2ComOpt connection with session id ${id} created") def