Reminders on Scala syntax

Reminders The companion object (both for own code and Scala’s API) // The class definition with primary constructor class Node protected (val a: String, private var b: String) { // imports definitions in companion object import Node._ // attributes and primary constructor code var busy = false // methods override def toString() = “A” } […]