The only difference in C++ between struct and class is that struct is default public, whereas class is default private.