Abstract
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 assigned, it can’t be changed. In contrast, an object whose value can be changed is a mutable object. Swift calls these variables.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Waqar Malik
About this chapter
Cite this chapter
Malik, W. (2015). Constants, Variables, and Data Types. In: Learn Swift on the Mac. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0376-7_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0376-7_5
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0377-4
Online ISBN: 978-1-4842-0376-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books