toString in user-defined class overrides the pre-defined
toString method, it has to be tagged with the
If you want to change selection, open document below and click on "Move attachment"
Classes - Scala Documentation move and toString. move takes two integer arguments but does not return a value (the implicit return type Unit corresponds to void in Java-like languages). toString, on the other hand, does not take any parameters but returns a String value. <span>Since toString overrides the pre-defined toString method, it has to be tagged with the override flag.
Classes in Scala are parameterized with constructor arguments. The code above defines two constructor arguments, xc and yc; they are both visible in the whole body of the class. In our e
|status||not read|| ||reprioritisations|
|last reprioritisation on|| ||suggested re-reading day|
|started reading on|| ||finished reading on|