Re:Can you use a class in C?
by yCombLinks on Sunday August 13, 2023 @10:05AM
(#37110146)
And a well defined class defines the structure and valid permutations for that data in a clear and easy to find place.
[ Parent
| on HN ]
And 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.