Difference between object and class in Scala
tl;dr class C defines a class, just as in Java or C++. object O creates a singleton object O as instance of some anonymous class; it can be used to hold static members that are not associated with instances of some class. object O extends T makes the object O an instance of trait T; … Read more