Created
September 30, 2022 15:54
-
-
Save devrath/b6272b5c59d4c0cf59af80399e6b745b to your computer and use it in GitHub Desktop.
Data object class is same as normal object class
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
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