top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Like Java’s java.lang.Object class, what is the super class of all classes in Scala?

+2 votes
437 views
Like Java’s java.lang.Object class, what is the super class of all classes in Scala?
posted Oct 5, 2016 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

As we know in Java, the super class of all classes (Java API Classes or User Defined Classes) is java.lang.Object. In the same way in Scala, the super class of all classes or traits is “Any” class.

Any class is defined in scala package like “scala.Any”.

answer Oct 6, 2016 by Shyam
...