Skip to content

Instantly share code, notes, and snippets.

@JavierCane
Created November 22, 2017 10:00
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 JavierCane/da9bf701172b3efb336a9867f649886c to your computer and use it in GitHub Desktop.
Save JavierCane/da9bf701172b3efb336a9867f649886c to your computer and use it in GitHub Desktop.
Scala case class example for the CodelyTV Pro Scala course πŸ‘‰ https://pro.codely.tv/
package tv.codely.scala_intro_examples.lesson_09_oop
final case class CaseClass(
attributeInConstruct: String,
private val privateAttributeInConstruct: String = "Some default value"
) {
val attributeInBody = "public body attribute value"
private val privateAttributeInBody = "private body attribute value"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment