Syntax

A variable marked as const cannot be changed. Attempting to call any non-const operations on it will result in a compiler error.

Const local variables

Const pointers

Const member functions

Avoiding duplication of code in const and non-const getter methods