2015
Treehouse
Pasan Premaratne
2:15
English
We've been working with simple primitive values so far but now it's time to upgrade our skills! Swift allows you to create custom data types using structures and classes. Both structs and classes achieve the same goal - they allow you to create custom data types to store and pass data around in your code, but they do this in different ways. In this course, we take a look at how to create custom objects, how to store and manipulate the data in these objects and how to create instances of them to work with.
Complex Data Structures
Introduction to Structs
Declaring a Struct - 1 objective
Instances of Objects
Creating an Instance - 1 objective
Methods
Instance Methods
Adding Instance Methods - 2 objectives
Initializers and Self
Custom Initializers
Classes
Introduction to Classes
Instances of Classes - 1 objective
Building a Tower
Classes with Custom Types - 1 objective
Helper Methods
High Level Overview
Recap: Classes - 5 questions
Class Inheritance
Inheritance
Overriding Properties
Creating a Subclass - 1 objective
Overriding Methods
Overriding Methods - 1 objective
Differentiating Between Objects
Structs vs Classes
Value and Reference Types
Recap and Conclusions
Recap: Value vs Reference Types - 4 questions
Download File Size:251.81 MB