We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7cd0a commit 0bdccfbCopy full SHA for 0bdccfb
_overviews/overview/a-taste-of-scala.md
@@ -601,7 +601,7 @@ Notice how the class extends the traits with the `extends` and `with` keywords.
601
Similarly, here’s a `Cat` class that implements those same traits while also overriding two of the concrete methods it inherits:
602
603
```scala
604
-class Cat(name: String) extends Speaker with TailWagger with Runner:
+class Cat(name: String) extends Speaker, TailWagger, Runner:
605
def speak(): String = "Meow"
606
override def startRunning(): Unit = println("Yeah ... I don’t run")
607
override def stopRunning(): Unit = println("No need to stop")
@@ -1316,4 +1316,3 @@ Scala has even more features that weren’t covered in this whirlwind tour. See
1316
1317
1318
1319
-
0 commit comments