super
Last updated at 1:40 am UTC on 17 January 2006
- super is a constant reference to the same instance object as "self".
- However, the search for the method/selector associated with super begins with the parent of self.
- It is not legal to use super in any circumstances other than with an associated selector (i.e., you may not pass super as an argument to another method)
Examples
myMethod: n
super myMethod: n
- passes n to the parent method (myMethod) of the present object
- in this case deleting the myMethod of the child would have absolutely no impact on the functioning of the system