3 ms·
> structs are raw data structures while classes are fully featured OOP entities. Don't put they in the same box. That's not true. Structs and classes are ident
by nicolasgz 13y ago
> structs are raw data structures while classes are fully featured OOP entities. Don't put they in the same box.
That's not true. Structs and classes are identical except for the minor functional differences highlighted in the article.
- talles 13y agoBy the way C++ standardized it? Yes, the only big difference is property accessors. By convention? Nope. The term struct pretty much stands for a pure data construct. C++ attempted (and pretty much failed) to make this distinction. Some languages, like C#, did a much better job. In the real world we are always urging to being consistent. While other languages do a pretty good job by enforcing it, on C++ this is more on your shoulders.