Scala Snippet: Object, Companion Object and Static Methods
If you are a Java developer moving to Scala, one notable difference in terminology that can cause confusion is the term 'object'. In Java an object is always an instance of a class, created by calling a constructor.
In Scala an object is used for defining a single instance of a class with the features you want. In practice this means you will use it: