2 ms·
A collection is a red herring. A collection uses a “getter” for the size since the size is not something you get/set like in a value object. But then again no
by avgcorrection 5y ago
A collection is a red herring. A collection uses a “getter” for the size since the size is not something you get/set like in a value object.
But then again no one calls it a “getter” (not even Java calls it `getSize()`) since the get/set discussion is about updatable fields, not the inner guts of objects.
Has anyone argued against encapsulation? No one has.