Is struct faster than class C++?

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.

Sizin İçin Seçtik  What are the different types of classes called?

Leave a Reply

Your email address will not be published. Required fields are marked *