Modifier | Class members | Top-level |
Public (default) | Visible everywhere | Visible everywhere |
Private | Visible only in the same class | Visible in the same file |
Protected | Visible only in the same class and subclasses | Not allowed |
Internal | Visible in the same module if the class is accessible | Visible in the same module |