2 ms·
There's a historical argument: encapsulation was in Cardelli's original object calculi, and part of every OO language of the time. There's also a conceptual ar
by naasking 8y ago
There's a historical argument: encapsulation was in Cardelli's original object calculi, and part of every OO language of the time.
There's also a conceptual argument: dynamic dispatch and object identity both require encapsulation. What do you think you're dispatching or comparing equality on if not hidden state?