Skip to content

Instantly share code, notes, and snippets.

@Sottti Sottti/Public.kt
Last active Dec 3, 2018

What would you like to do?
// Public.kt file
// Visible everywhere
public const val numberThree = 3
// Visible everywhere
public open class User() {
// Visible to everyone with visibility on the User class
public val numberEight =
// Visible everywhere
public class Moderator() {
// numberEleven is visible to everyone with visibility on the Moderator class
// numberEight is visible because User is public and numberEight is public
public val numberEleven = numberThree + User2().numberEight
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.