Advertisement

Classes and Closures

Chapter
  • 684 Downloads

Abstract

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.

Copyright information

© Yanis Zafirópulos 2019

Authors and Affiliations

  1. 1.GranadaSpain

Personalised recommendations