When do we need to use a structure in a pure C++ program? Is structure at all required in a pure C++ program? I understand that structure is the only way in a C program to encapsulate members and function pointers. But, if I use C++ to code my complete module, is it 100% alright if I stay away from structures and use a Class instead? Am I missing something?
(I googled but my question is very specific - is structure useless in pure C++ code)
=== EDITED === My question is not about the difference or commonalities between a structure and a class, but, do we need "struct" at all in C++, when you can 100% do away with a class. Is structure not redundant construct in C++, except for backward compatibility with C? I understand the difference between them w.r.t. the access specifiers but there are only syntactic differences.