Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.