Swift: Properties

In Swift, Properties associate values with instances of class, structure and enumeration. There are two types of properties. Stored property and Computed property. Stored properties store constant and variable values as a part of instance while computed property calculate the value. Stored properties are provided by classes, structures and enumerations.Computed properties are provided by classes and structures only. Properties are usually associated with instances of types. Sometimes properties are associated with the type itself and they are called as type properties.

Leave a Reply

%d bloggers like this: