News for hackers. Stuff that matters.
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.
Re:Can you use a class in C? by billfruit on Sunday August 13, 2023 @10:11AM (#37110189)
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.