4 ms·
And a well defined class defines the structure and valid permutations for that data in a clear and easy to find place.
by yCombLinks 3y ago
And a well defined class defines the structure and valid permutations for that data in a clear and easy to find place.
- billfruit 3y agoAnd allows to create any number of objects of its kind without explicitly needing to allocate memory for the objects. That is a major advantage I think, without that the code will get cluttered with all the memory allocation/deallocation going on explicitly.