The Singleton is probably the simplest pattern, some languages like Scala provide
a keyword (object
instead of class
) to create them directly without defining a class according to the
pattern directives.
You can find an example project on GitHub at this address: