Last active
December 15, 2018 09:53
-
-
Save Sottti/9351b67fd43a233d0dc1fc7151aec8d5 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
// OverridenFromAnotherFile.kt | |
// Error: getAge() is not visible because is protected | |
val userAge = User().getAge() | |
// Error: getAge() is not visible because inherits the protected modifier | |
val moderatorAge = Moderator().getAge() | |
// getAge() is visible because the modifier is declared explicitly as public | |
val staffAge = Staff().getAge() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment