We can provide initialization parameters as a part of initializer definition. The syntax for initializer is same as function and […]
Type properties can have both stored and computed properties. In case of structures and enums, the stored and computed properties […]
Any can represent an instance of any kind of type and AnyObject can represent an instance of a class type.
A constant or variable may refer to an instance of a subclass behind the scenes. In order to downcast them […]
Type check operator ‘ is ‘is used to check whether an instance is of a certain subclass type. It will […]
Type casting is used to check the type of an instance , to check whether a type conform to a […]
A value type is a type where the data or value is copied when assigned to a constant , variable […]
Type-aliases define an alternative name to an existing type. We define type aliases with a typealias keyword.
Constants and Variables associate a name with a value of particular type. They are like containers to store values.They must […]