Tag: Overrides
-
A Swift Guide to Working with Classes Part Two: Advanced Class Techniques
In our first part we looked at some of the basics of classes in Swift. In this part, we look at some of the more advanced features of classes which developers use every day — often without knowing it. We’ll explore first a bit more on class methods, scope, keeping others from messing with your […]
-
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 like callback, override, setter and getter and have no idea what […]
-
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 method or function. This allows the method or function of the […]