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

1 Answer

0 votes
by

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”.

Related questions

0 votes
asked Sep 12, 2022 in Scala Constructs by Robin
0 votes
asked Sep 12, 2022 in Scala Constructs by Robin
...