Neither is “faster” than the other . The only difference between a struct and a class in C++ is the default access modifier for members. In a struct, the default access modifier for members is public. In a class, the default access modifier for members is private.