Functions and OOP
Learn to write reusable code with functions and organize your programs using object-oriented programming concepts.

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


Functions and object-oriented programming are key concepts for organizing and reusing code. They help you write cleaner, more maintainable programs that are easier to understand and modify.

In this unit, you’ll learn to write reusable code with Swift functions and organize your programs using object-oriented concepts. We’ll cover function syntax, parameters and return values, closures, and then move into classes, structs, protocols, and inheritance.

These concepts form the backbone of Swift application development and are essential for building well-structured iOS and macOS applications.

Lessons in this unit:

0: ▶︎ Introduction
1: Functions
2: Optionals and Nil
3: Enumerations
4: Structures
5: Classes
6: Objects
7: Protocols
8: Modules