Changes

An Introduction to Swift Inheritance

31 bytes added, 15:48, 23 December 2015
Overriding Inherited Methods
<google>BUY_IOS8</google>
== Overriding Inherited Methods ==
<google>ADSDAQBOX_FLOW</google>
When using inheritance it is not unusual to find a method in the parent class that almost does what you need, but requires modification to provide the precise functionality you require. That being said, it is also possible you'll inherit a method with a name that describes exactly what you want to do, but it actually does not come close to doing what you need. One option in this scenario would be to ignore the inherited method and write a new method with an entirely new name. A better option is to override the inherited method and write a new version of it in the subclass.