Swift: Stored properties of variable struct instances

A stored property is a constant or variable that is stored as a part of an instance of a particular class or structure. Stored properties can be variable stored properties(var) or constant stored properties(let). We can set default value for a stored property as a part of its definition or set and modify the initial value during initialization for both constant and variable stored properties. Once values are set for constant stored properties they cannot be changed.


Leave a Reply