Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift - Protocol oriented programming

Swift - Protocol oriented programming

Perkenalan Swift - Protocol oriented programming

Nanang Rafsanjani

September 25, 2015
Tweet

More Decks by Nanang Rafsanjani

Other Decks in Programming

Transcript

  1. Classes are Awesome • Encapsulation • Access Control • Abstraction

    • Namespace • Expressive Syntax • Extensibility
  2. Classes are Awesome • Encapsulation • Access Control • Abstraction

    • Namespace • Expressive Syntax • Extensibility You can do all that with structs and enums!
  3. Inheritance too intrusive • You can only have 1 super

    class • Bloating your super class • If superclass have stored properties ◦ You have to accept them, which bloat it ◦ You have to initialize it ◦ Make sure that you understand how to interact with your superclass