Skip to content

Commit 0bdccfb

Browse files
alvinjjulienrf
andauthored
Update _overviews/overview/a-taste-of-scala.md
Co-authored-by: Julien Richard-Foy <[email protected]>
1 parent 0c7cd0a commit 0bdccfb

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
@@ -601,7 +601,7 @@ Notice how the class extends the traits with the `extends` and `with` keywords.
601601
Similarly, here’s a `Cat` class that implements those same traits while also overriding two of the concrete methods it inherits:
602602

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

13171317

13181318

1319-

0 commit comments

Comments
 (0)