in C++ methods are private by default!!!

In C++, the primary difference between a class and a struct lies in the default access level of their members. Members of a class are private by default, whereas members of a struct are public by default.