3 ms·
"struct" here is meant in the same sense that the author of the post refers to "PoD objects". Just data in public fields. Whereas a "class" is usually thought
by wffurr 8y ago
"struct" here is meant in the same sense that the author of the post refers to "PoD objects". Just data in public fields.
Whereas a "class" is usually thought of as private data exposed only through methods.
There is no language that enforces this distinction; it's purely by convention. C++ makes it a little simpler by having a different default access level.
In any case, you are being needlessly pedantic and missing the point.