Hey there again :P
Blizzard already explained me the use of supers, but I've one doubt or two xD
On the dispose method, should I do as in initialize one?
I mean, if I use 'super()' at initialize method , then at dispose method should I put 'super()' or just 'super' ?
Same question when I need to put arguments on the super...
class xxx < YYY
def initialize
super(d, d, d)
#code
def dispose
self.contents.clear
super(d, d, d)
end
end
My other doubt, was about the 'order' or the code at dispose method...
On the previous case I used 'self.contents.clear' first, but it is the correct order? What should I write first, and what are the differences between the different orders? :P
Appreciated (:
The () are only used if the method of the super has arguments. If it doesn't have arguments, which most dispose methods won't, you casn omit the ().