Created
April 10, 2018 08:10
-
-
Save satoshun/a83a3008c4c0f4e9b7ddbc60315a2f74 to your computer and use it in GitHub Desktop.
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 class User(private val loginCount: Int, private val firstAccess: Boolean) { | |
private fun isHeavyUser() : Boolean() { | |
// hyper HeavyUser if loginCount > 100. hyper HeavyUser doesn’t contain a HeavyUser. | |
return firstAccess || (loginCount >= 10 && loginCount <= 100) | |
} | |
private fun hyperHeavyUser(): Boolean() { /** */ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment