In this chapter we will go over the object-oriented side of Swift. Having experience with ActionScript, you are already familiar with the object-oriented programming (OOP) paradigm. It treats a piece of software as a system, which is broken down into objects. Each object is responsible for a part of the system and looks after its own state.
Swift uses four main OOP entities:
Classes
Structures
Enumerations
Protocols
Each of these entities defines a type (classes, structures, ...