Skip to content

Instantly share code, notes, and snippets.

@knightpop
Last active October 3, 2017 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knightpop/99f5288334a33e73e6bb406827df0914 to your computer and use it in GitHub Desktop.
Save knightpop/99f5288334a33e73e6bb406827df0914 to your computer and use it in GitHub Desktop.
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