Created
January 10, 2022 02:03
-
-
Save ParkSangGwon/00f81c384443949d73775084b7085248 to your computer and use it in GitHub Desktop.
This file contains 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
sealed class User { | |
data class Customer( | |
val name: String, | |
val address: String, | |
val phoneNumber: String | |
) : User() | |
data class Store( | |
val name: String, | |
val address: String, | |
val businessNumber: String | |
) : User() | |
data class Admin( | |
val name: String, | |
val department: String | |
) : User() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment