lock method

void lock()

Locks this symbol, and prevents its value from being overwritten.

Implementation

void lock() {
  _locked = true;
}