[Swift] An Overview of Swift’s Key Features

<h2>1. Static binding language</h2> <p>Swift is considered a statically typed language, even though it features data type inference. In Swift, you can declare a property as follows:</p> <pre> let myValue = 24</pre> <p>Or, you can explicitly specify the data type like this:</p> <pre> let myValue: Int = 24</pre> <h2><strong>2. Protocol</strong></h2> <p>A protocol in Swift is similar in concept to Java&rsquo;s interface. It defines a set of requirements that conforming types must adhere to.</p> <p>Here&rsquo;s an example of a protocol in Swift:</p> <p><a href="https://medium.com/@ganeshrajugalla/swift-an-overview-of-swifts-key-features-1c8c544db9b3"><strong>Click Here</strong></a></p>
Tags: Swift’s Key