Skip to content

Commit 1c33968

Browse files
FRosnerYaskier
andauthored
Update src/main/scala/stdlib/Traits.scala
Co-Authored-By: Yaskier <[email protected]>
1 parent 7f130c9 commit 1c33968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/Traits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import org.scalatest._
1111
*/
1212
object Traits extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
1313

14-
/** Similar to interfaces in Java, traits are used to define object types by specifying the signature of the supported methods. And like in Java 8 does with interfaces and default methods in them, Scala allows traits to be partially implemented; i.e. it is possible to define default implementations for some methods. In contrast to classes, traits may not have constructor parameters.
14+
/** Similar to interfaces in Java, traits are used to define object types by specifying the signature of the supported methods. In traits methods can have default implementations. In contrast to classes, traits may not have constructor parameters.
1515
*
1616
* Here is an example:
1717
*

0 commit comments

Comments
 (0)