Skip to content

const

The const is a function type qualifier keyword; only member methods of classes and interfaces can be qualified as const.
The const qualifier guarantees the const methods to be non-property-modifying functions, just like in C++.

Syntax

ReturnType fuBar() const { /* method body */ }