This module establishes a solid understanding of OOP’s core principles, including encapsulation, abstraction, inheritance and polymorphism.
By Audrey Tam.
Learn how inheritance and polymorphism enable you to create flexible, reusable code. Create a subclass, define its init method and override an inherited method.
Swift protocols enable you to model behavior that isn’t connected to inheritance. Learn how to make a data type conform to a protocol and create your own protocol for museum objects that are on display.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.