Programare swift Swift tutorial from tutorials point | Page 10

Swift 4 Parameters Initialization ..................................................................................................................... 132 Local & External Parameters ............................................................................................................... 133 Parameters without External Names ................................................................................................... 134 Optional Property Types ..................................................................................................................... 135 Modifying Constant Properties During Initialization ............................................................................ 136 Default Initializers ............................................................................................................................... 137 Memberwise Initializers for Structure Types ....................................................................................... 138 Initializer Delegation for Value Types .................................................................................................. 138 Class Inheritance and Initialization ...................................................................................................... 140 Initializer Inheritance and Overriding .................................................................................................. 142 Failable Initializer ................................................................................................................................ 143 Failable Initializers for Enumerations .................................................................................................. 144 Failable Initializers for Classes ............................................................................................................. 145 Overriding a Failable Initializer ............................................................................................................ 146 The init! Failable Initializer .................................................................................................................. 147 Required Initializers ............................................................................................................................ 148 28. SWIFT 4 – DEINITIALIZATION ........................................................................................... 149 Deinitialization to Deallocate Memory Space ...................................................................................... 149 29. SWIFT 4 – ARC OVERVIEW ............................................................................................... 151 Functions of ARC ................................................................................................................................. 151 ARC Program ....................................................................................................................................... 151 ARC Strong Reference Cycles Class Instances ...................................................................................... 152 ARC Weak and Unowned References .................................................................................................. 153 Strong Reference Cycles for Closures .................................................................................................. 155 Weak and Unowned References ......................................................................................................... 156 ix