When should you use a class vs a struct in C++?
The differences between a class and a struct in C++ is: struct members and base classes/structs are public by default. class members and base classes/struts are private by default. Both classes and structs can have a mixture of public, protected and private members, can use inheritance and can have member functions. I would recommend you: … Read more