November 2020
Intermediate to advanced
766 pages
15h 29m
English
In the last chapter, you learned how to represent complex objects using classes or structures and how to use enumerations to group related values together.
To end this section on Swift, you'll learn about protocols, extensions, and error handling. Protocols define a blueprint of methods, properties, and other requirements that can be adopted by a class, structure, or enumeration. Extensions enable you to provide new functionality for an existing class, structure, or enumeration. Error handling covers how to handle errors in your program.
By the end of this chapter, you'll be able to write your own protocols to meet the requirements of your apps, use extensions to add new capabilities to existing ...
Read now
Unlock full access