3 ms·
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.
by jeffreymcmanus 15y ago
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.
- fleitz 15y agoWhen 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.