Constants, Variables, and Data Types

  • Waqar Malik


In OOP languages, an immutable object is an object whose state can’t be modified. Swift calls these constants. Once a constant object has been created and an initial value has been assigned, the object cannot be changed. In contrast, an object whose value can be changed is a mutable object, or the object can be mutated. Swift calls these objects variables.


Type String Guard Statement Constant Object Original Array Dictionary State 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Waqar Malik 2015

Authors and Affiliations

  • Waqar Malik
    • 1
  1. 1.CAUS

Personalised recommendations