Re:Pretending OOP Never Happened
by hnick on Saturday May 16, 2020 @09:11PM
(#23208553)
Thank you for the examples. I've been in perl too long where a lot of good practice is just a suggestion and not enforced. In particular private vs protected (which is what I was thinking of regarding accessing internals) doesn't really exist.
I tend to lean towards inheritance for functional extensions and composition for everything else, but there are so many ways to skin an OO cat.
I tend to lean towards inheritance for functional extensions and composition for everything else, but there are so many ways to skin an OO cat.