2 ms·
Also a class in C++ is by default exactly the same as a struct (except for default access control which is a minor thing). An OOP style class would be any class
by gpderetta 8y ago
Also a class in C++ is by default exactly the same as a struct (except for default access control which is a minor thing). An OOP style class would be any class type (including struct) with virtual functions which you would have to opt in.