The == Operator in Scala PRO

When calling the == operator in Scala we indirectly invoke the equals method. Overriding equals can give a new meaning for the == operator. The following code sample shows that. The following code snippet is of the Circle class definition, where we override equals. package il.ac.hit.samples /** * Created by IntelliJ IDEA. * User: Haim […]

Skip to content Update cookies preferences