4 ms·
> One of the core principles of the OOP is encapsulation - your object does not appear in inconsistent state to the outside world. This is not a defining featu
by naasking 10y ago
> One of the core principles of the OOP is encapsulation - your object does not appear in inconsistent state to the outside world.
This is not a defining feature of OOP, because it's a characteristic of abstract data types which predate OO. William Cook managed to distill the essence quite clearly I think [1].
[1] http://www.cs.utexas.edu/~wcook/Drafts/2009/essay.pdf http://www.cs.utexas.edu/~wcook/Drafts/2009/essay.pdf