Modifiers

Modifiers are used to change the semantics of a statement or member.

  • abstract

    The abstract modifier is used to declare an abstract class or a method that must be implemented by derived classes.

  • Access Modifiers

    Access modifiers are used to change the visibility and access privileges for a member.

  • final

    The final modifier is used to declare variables as always retaining the same value or reference. When used on classes, the class cannot be subclassed.

  • override

    The override modifier is used to override a virtual or abstract method.

  • overwrite

    The overwrite modifier is used for method hiding/shadowing (early binding).

  • property

    The property modifier is used to declare a method as a getter or setter.

  • static

    The static modifier is used to declare a member as belonging to a class itself rather than its instances.

  • virtual

    The virtual modifier is used to declare a method as a virtual method that can be overridden by derived classes using the 'override' keyword.

Share

HTML | BBCode | Direct Link