Last active
October 3, 2017 18:19
-
-
Save knightpop/99f5288334a33e73e6bb406827df0914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Printable { | |
def print: String | |
} | |
case class PrintableClass(value: String) extends Printable { | |
override def print: String = s"value: ${value.toString}" | |
} | |
case class ValueCaseClass(value: String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment