Summer BF 2
Save up to 80 % on our C and C++ e-learning courses. Only this week!
Get up to 80 % extra points for free! More info

Object-Oriented Programming in Swift

Learn the object-oriented programming in Swift in this online course from the first object-oriented app to advanced structures.

Introduction to object-oriented programming in Swift

Lesson 1

Introduction to object-oriented programming in Swift

In this tutorial, we'll introduce object-oriented programming in Swift, explain historical origins as well as terms such as classes, fields, and methods.
Written by Filip Němeček
FreeUnrated Show description
First object-oriented app in Swift

Lesson 2

First object-oriented app in Swift

In this tutorial we'll create our first object-oriented app in Swift - Hello object world. We'll create classes, attributes and parameterized methods.
Written by Filip Němeček
FreeUnrated Show description
RollingDie in Swift - Constructors and Random numbers

Lesson 3

RollingDie in Swift - Constructors and Random numbers

In this tutorial, we'll learn how to use constructors and a random number generator. We'll program a rolling die in Swift, as the first part of our arena.
Written by Filip Němeček
FreeUnrated Show description
Reference and value data types in Swift

Lesson 4

Reference and value data types in Swift

In this tutorial, we'll explain in detail how Swift works with references (objects) in memory in contrast to value data types. We'll describe ARC.
Written by Filip Němeček
FreeUnrated Show description
Warrior for the arena in Swift

Lesson 5

Warrior for the arena in Swift

In this Swift tutorial, we'll create a warrior object (class). Its instances will battle in the arena next time.
Written by Filip Němeček
FreeUnrated Show description
Arena with warriors in Swift

Lesson 6

Arena with warriors in Swift

In this tutorial, we'll finish our arena with warriors. As a result, we'll have an object-oriented Swift application simulating a board game.
Written by Filip Němeček
FreeUnrated Show description
Inheritance and polymorphism in Swift

Lesson 7

Inheritance and polymorphism in Swift

In this Swift tutorial, we'll go over object inheritance and polymorphism. We'll learn how to reuse code and explain what the fileprivate modifier is.
Written by Filip Němeček
FreeUnrated Show description
Arena with a mage in Swift (inheritance and polymorphism)

Lesson 8

Arena with a mage in Swift (inheritance and polymorphism)

In this Swift lesson, you'll learn how to call super constructors, override methods and put what you know about inheritance and polymorphism to the test.
Written by Filip Němeček
FreeUnrated Show description
Static class members in Swift

Lesson 9

Static class members in Swift

In this Swift tutorial, we'll learn how to use static properties, methods, constructor, and create a static registry.
Written by Filip Němeček
FreeUnrated Show description
Properties in Swift

Lesson 10

Properties in Swift

In this Swift tutorial, we'll show how to declare advanced properties called compound properties, getters/setters, which allow us better encapsulation.
Written by Filip Němeček
FreeUnrated Show description
Protocols (interfaces) in Swift

Lesson 11

Protocols (interfaces) in Swift

In this tutorial, we'll learn how to use protocols (interfaces) in Swift, how to implement them using Xcode, and replace multiple inheritance with it.
Written by Filip Němeček
FreeUnrated Show description
Type casting and object hierarchy in Swift

Lesson 12

Type casting and object hierarchy in Swift

You'll learn how to cast an instance to another data type using protocols in Swift. You'll also learn to create an object hierarchy.
Written by Filip Němeček
PROUnrated Show description
Overloading operators and other useful syntax in Swift

Lesson 13

Overloading operators and other useful syntax in Swift

We'll show you how to define operators for custom types, including custom operators, and a few more useful things in Swift.
Written by Filip Němeček
PROUnrated Show description
Handling errors in Swift

Lesson 14

Handling errors in Swift

We'll have a look at error handling in Swift; how to deal with exceptions that may occur at runtime, try and do-catch blocks, and using defer.
Written by Filip Němeček
FreeUnrated Show description
Enums and custom errors in Swift

Lesson 15

Enums and custom errors in Swift

In this Swift tutorial, we'll learn to use enums, the enumerated types. It'll be followed by creating and handling custom Errors.
Written by Filip Němeček
PROUnrated Show description
Extensions and their use in Swift

Lesson 16

Extensions and their use in Swift

We'll explain what are extensions in Swift and show how to use them to extend our code and make it more readable.
Written by Filip Němeček
PROUnrated Show description


 

Activities (4)