Skip to content

Commit dd13390

Browse files
alvinjjulienrf
andcommitted
Update _overviews/overview/a-taste-of-scala.md
Co-authored-by: Julien Richard-Foy <julien@richard-foy.fr>
1 parent 5cd4189 commit dd13390

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_overviews/overview/a-taste-of-scala.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ Notice how the class extends the traits with the `extends` and `with` keywords.
602602
Similarly, here’s a `Cat` class that implements those same traits while also overriding two of the concrete methods it inherits:
603603

604604
```scala
605-
class Cat(name: String) extends Speaker with TailWagger with Runner:
605+
class Cat(name: String) extends Speaker, TailWagger, Runner:
606606
def speak(): String = "Meow"
607607
override def startRunning(): Unit = println("Yeah ... I don’t run")
608608
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
13171317

13181318

13191319

1320-

0 commit comments

Comments
 (0)