Created
November 22, 2017 10:00
-
-
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/
This file contains hidden or 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
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