Question d’entretien chez RTX

What is the difference between a class and a struct?

Réponse à la question d'entretien

Utilisateur anonyme

12 mai 2018

In terms of c++, there is no functional difference aside from the default accessibility that struct is public before the first public/Private is declared, while classes are private. But for readbility and consistency to legacy codes structs should be used as public.