[Swift] An Overview of Swift???s Key Features

1. Static binding language

Swift is considered a statically typed language, even though it features data type inference. In Swift, you can declare a property as follows:

let myValue = 24

Or, you can explicitly specify the data type like this:

let myValue: Int = 24

2. Protocol

A protocol in Swift is similar in concept to Java’s interface. It defines a set of requirements that conforming types must adhere to.

Here’s an example of a protocol in Swift:

Click Here

Tags: Key Swift???s