Timeline for How To Extend Parent Methods in Children Classes?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 10, 2015 at 13:09 | comment | added | Bent | "almost the same flow of calls" If it is different for each child then you don't really repeat yourself do you? Calling the same method in different places ins't a violation of DRY, copying the logic in that method around in different places because you need slight variations in the lgoic around it is. | |
Dec 10, 2015 at 12:52 | comment | added | Euphoric | But then, each child has almost the same flow of calls in their do_this method, violating DRY. And there is also question of specific order of calls to the methods. Who is going to enforce those if child can call them in any order? | |
Dec 10, 2015 at 11:28 | history | answered | Bent | CC BY-SA 3.0 |