+ 1

struct and class

what's the difference between structure and class in cpp?

4th Oct 2018, 10:37 AM
Mahmoud Badr
Mahmoud Badr - avatar
1 Réponse
+ 9
The members of a structure are public by default while those of a class are private by default. More information: https://stackoverflow.com/questions/92859/what-are-the-differences-between-struct-and-class-in-c
4th Oct 2018, 11:58 AM
Harsh
Harsh - avatar