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 5cd4189 commit dd13390Copy full SHA for dd13390
_overviews/overview/a-taste-of-scala.md
@@ -602,7 +602,7 @@ Notice how the class extends the traits with the `extends` and `with` keywords.
602
Similarly, here’s a `Cat` class that implements those same traits while also overriding two of the concrete methods it inherits:
603
604
```scala
605
-class Cat(name: String) extends Speaker with TailWagger with Runner:
+class Cat(name: String) extends Speaker, TailWagger, Runner:
606
def speak(): String = "Meow"
607
override def startRunning(): Unit = println("Yeah ... I don’t run")
608
override def stopRunning(): Unit = println("No need to stop")
@@ -1317,4 +1317,3 @@ Scala has even more features that weren’t covered in this whirlwind tour. See
1317
1318
1319
1320
-
0 commit comments