December 2018
Intermediate to advanced
423 pages
4h 23m
English
In this chapter, we’re going to explore two of the most powerful elements of the Swift language: classes and closures. Classes are a neat way to group functions together, along with data, and be able to create integrated objects with “state.” While closures provide us with a flexible way to use functions, without the usual function overhead – that is, defining them thoroughly, naming them, declaring their arguments, etc.
We want to define a barebones class .
Read now
Unlock full access