Skip to content

Instantly share code, notes, and snippets.

@HugoMatilla
Last active October 2, 2022 15:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HugoMatilla/1e858b330d3a8cbdd5b82dd409b0ddc8 to your computer and use it in GitHub Desktop.
Save HugoMatilla/1e858b330d3a8cbdd5b82dd409b0ddc8 to your computer and use it in GitHub Desktop.
Modifier Corresponding member Comments for classes
final Can’t be overridden Used by default for class members
open Can be overridden Should be specified explicitly
abstract Must be overridden Can be used only in abstract classes; abstract members can’t have an implementation
override Overrides a member in a superclass or interface Overridden member is open by default if not marked final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment