Tutorial

Difference between object and class in Scala.

Object so in scala object is a singleton instance of the class, lets explain with small snippet. object test { def addPlusOne(a:Int) = a+1; } So when your calling the function instance is