Nov 14, 2020
This is not quite correct. As far as the JVM is concerned, a Scala object does have a class, with a private constructor. Furthermore, objects can be treated as instances of classes, as this Scastie snippet demonstrates: https://scastie.scala-lang.org/rMiYXXLcRlynNW373uXpNg