Skip to content

Instantly share code, notes, and snippets.

@knightpop

knightpop/Instance.sc

Last active Oct 3, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.