Chapter 1. Swift objects
3.1. Classes
3.1.1.
Defining a class
3.1.2.
Properties
Type properties
Instance properties
3.1.3.
Initializers
3.1.4.
Methods
Instance methods
Type methods
Overloading
3.1.5.
Computed properties
3.1.6.
Class inheritance
Overriding
Pros and cons
3.1.7.
Protocols
Protocol extensions
Protocol relationships
3.2. Structures
3.2.1.
Structures vs. classes
Structures can’t inherit
Memberwise initializers
Structures are value types
Constants
Which object type?
3.3. Extensions
3.3.1.
Extensions of your type
3.3.2.
Extensions of their type
3.3.3.
Operator overloading
3.3.4.
Generics
3.4. Summary