If you extend a class and create a method with an identical name, which is the outcome?
Given the above, how can I extend a class on one particular route only? I mean: would doing that be considered normal practice? Does wanting to do that indicate I'm doing something wrong if I'm having conflicts?
I'm having conflicts, but that's only because I'm trying to use the already-existing methods where available because they're mostly useful (except when they're not).
Also, how can I ensure there are no conflicts (more generally) with my addon against any other ones?
EDIT: I do think I've approached this the wrong way. Instead of extending a class, I can simply create a new one (like, duplicate), and 'discard' any residual, unrequired methods at the end.
Given the above, how can I extend a class on one particular route only? I mean: would doing that be considered normal practice? Does wanting to do that indicate I'm doing something wrong if I'm having conflicts?
I'm having conflicts, but that's only because I'm trying to use the already-existing methods where available because they're mostly useful (except when they're not).
Also, how can I ensure there are no conflicts (more generally) with my addon against any other ones?
EDIT: I do think I've approached this the wrong way. Instead of extending a class, I can simply create a new one (like, duplicate), and 'discard' any residual, unrequired methods at the end.
Last edited: