Last active
December 15, 2018 09:50
-
-
Save Sottti/3b313ce6f592183717207d4bbef549e7 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
// User is public | |
// The User primary constructor is private | |
class User private constructor(id : Int) { | |
// ... | |
} | |
// Moderator is internal | |
// The Moderator primary constructor is private | |
internal Moderator private constructor(id : Int) { | |
// ... | |
} | |
// Staff is internal | |
// The Staff primary constructor is public, but it's | |
// visibility is restricted by the class internal modifier | |
internal Staff(id : Int) { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment