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

Code savings isn't a reasonable goal of OOP. Information-hiding (in which you take an arbitrarily-complicated method and abstract it behind a class) is.


When you give people inheritance all they see is hierarchies and when you give them information hiding systems all they see is access control.

One should not be able to find trade secrets by grepping for "private", nor reproduce a companies org chart by a class inheritance graph.




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

Search: