Skip to content

Instantly share code, notes, and snippets.

@devrath
Created September 30, 2022 15:54
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 devrath/b6272b5c59d4c0cf59af80399e6b745b to your computer and use it in GitHub Desktop.
Save devrath/b6272b5c59d4c0cf59af80399e6b745b to your computer and use it in GitHub Desktop.
Data object class is same as normal object class
data object Age {
private const val default : Int = 0
fun printDefaultAge(): Int {
return default
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment