Initializer syntax in Swift

Initializers are called to create new instance of particular type.They are like instance method without parameter name written using init keyword. […]

Advertisements

Swift: Structure and Class Syntax

Structures and Classes have similar syntax definition. We create structures using the struct keyword and classes using the class keyword. As structures and […]