Tag: subclassing

A Swift Tutorial for Working with Classes Part 3: Abstract classes.

In the first tutorial in this series we introduced classes. In  the second we did some more advanced manipulations of classes. In both, we discussed the idea of inheritance, which has one final possibility: a class whose only purpose is to define other classes.… Continue Reading “A Swift Tutorial for Working with Classes Part 3: Abstract classes.”

A Swift Tutorial to Working with Classes Part 1:Basic Classes

I find a lot of confusion among beginners and a handful of intermediate developers about what is a class. Object oriented languages like Swift, Objective C or C++ use classes to organize everything in the language and the API’s. You might have heard words… Continue Reading “A Swift Tutorial to Working with Classes Part 1:Basic Classes”

From Apple to Raspberry Pi: Using Inheritance and Overrides

Object oriented languages have a  concept called inhertance. A class can give its methods and properties to another class, which then replaces or expands the inherited class. We call the new class a subclass. When we replace a function or method we override the… Continue Reading “From Apple to Raspberry Pi: Using Inheritance and Overrides”