Day: December 9, 2020

Swift programming for Beginners – Swift Closures

(Swift for Beginners) Swift Closures In this article, you’ll learn what is a closure, syntax, types of closures in Swift with examples. In the article Swift functions, we created a function using func keyword. However, there is another special type of function in Swift, known as closures that can be defined without using keyword func and a function name. Like functions, …

Swift programming for Beginners – Swift Function Overloading

(Swift for Beginners) Swift Function Overloading In this article, you will learn about function overloading, when do we need function overloading and how to overload with examples. Two or more functions having same name but different argument(s) are known as overloaded functions. Why do we need function overloading? Imagine you are developing a shooter game …