Product was successfully added to your shopping cart.
Object-Oriented Swift 2.0

Object-Oriented Swift 2.0

Be the first to review this product

Object-Oriented Swift 2.0

Be the first to review this product

About this Course


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.

Details

What you'll learn

  • Structures
  • Classes
  • Inheritance
  • Value Types
  • Reference Types

Complex Data Structures

We're going to try our hand at modeling a simple tower defense game. The simples data point that we need to model is a Point and in the first set of videos, we'll look at how a structure makes it really easy to model a coordinate point. We'll look at creating instances of points using this blueprint as well as writing methods to work on the data stored in an instance.

Classes

Now that we have a Point struct to represent a coordinate point we can focus on the rest of the game. The next object we're going to use is called a class. Much like a struct, a class lets us model a custom data type, with some subtle differences. In the next set of videos we look at how to create a class and get some more practice in working with objects.

Class Inheritance

So far we've seen two types of objects that Swift offers but we don't really know the difference between the two. While structs allow us to model simple values, classes allow us to create families of related objects. Over the next few videos, we'll look at how we can inherit from other classes and modify their properties and behaviors to suit our needs.

Differentiating Between Objects

We touched on a major way that structs and classes differ - inheritance. But there are other more subtle ways we can distinguish between the two and in this stage we take a look at how and why it matters.

Average Rating

0
rating

Ratings area

There is no rating area for this product

  1. Be the first to review this product

Write Your Own Review

How do you rate this product? *

  1 star 2 stars 3 stars 4 stars 5 stars
Cost
Video Quality
Support

level:
Beginner
Durataion:
2 Hours
Language:
English
Institute:
TreeHouse
Trail Period:
14 Days