kristofk
(Kristof Kocsis)
1
Is there a difference between override convenience init and convenience override init?
As far as I can tell there is no difference in behaviour or at the call site.
jrose
(Jordan Rose)
2
Nope. Declaration modifiers can always be placed in any order, like attributes (though many organizations have style guides dictating a certain order). Good question!
1 Like
Didn't know you can override convenience initializers...How did you do it?
kristofk
(Kristof Kocsis)
4
You can't! I'm overriding a designated initializer with a convenience init.
So it better I guess if we use convenience override init to convey that this is a convenience init that has the same signature as the designated initializer in the superclass.
1 Like