Bob Lee Course Part 13 (lectures 21 to 23)
Back to Bob! I have genuinely missed learning new information, having spent a few days doing my mega consolidation project! The will be updated at the end of each 'stage' or mini stage. So my aim now is to complete the rest of this chapter, then I will do a consolidation review of the entire chapter - object oriented Swift. OK, let's get stuck in! Start Time - 17:02 Override Method, Init, Property SO this is what we will be looking at - the super.viewDidLoad bit... I get the idea of the override method. If you have a function with a class, then in the subclass, you want to change how the method works. So you need to use the override keyword. Bob makes the point that if you use the original value of what is returned, then you need to use the super keyword... Xcode doing an update so am screenshotting rather than typing out actual code. All the above is fine - I had forgotten that I still need to use the super bit - even if the value is not...