Methods and values that aren’t associated with individual instances of a class belong in singleton objects, denoted by using the keyword object
instead of class
.
This is a companion discussion topic for the original entry at http://docs.scala-lang.org//tutorials/tour/singleton-objects.html.html