5 ms·
> If an object is just there to store data and no behavior Then why do you have it at all?
by clifanatic 10y ago
> If an object is just there to store data and no behavior
Then why do you have it at all?
- Bognar 10y agoTo define a valid shape for related data.
- sidlls 10y agoSometimes many different values are related to each other and it is useful to keep them close together for explicitness (and other reasons).
- st3v3r 10y ago... to store data?
- wtetzner 10y agoI suppose because the language doesn't have typed records. You have to simulate them with objects.