Skip to content

Commit 09c8f52

Browse files
authored
Merge pull request #121 from Yaskier/patch-2
Java do have default methods in interfaces.
2 parents 566a178 + 1c33968 commit 09c8f52

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. Unlike Java, 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)