Scala / Scala interview questions
Difference between an object and class in Scala.
An object is a singleton instance of a class that does not need to be instantiated by the developer. If an object has the same name that a class, then the object is called a companion object.
An object cannot accept parameter while class can.
More Related questions...