Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: