The == Operator in Scala <font size=-2><a href=http://www.lifemichael.com/en/?page_id=73 target=_blank>PRO</a></font>
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 […]