+ 2
What is the difference between class and structure in c++?
5 Réponses
+ 3
https://www.sololearn.com/learn/CPlusPlus/1710/?ref=app
Similar post:
(It's got great answers)
https://www.sololearn.com/discuss/1285581/?ref=app
+ 2
The only difference in C++ is that class members and inheritance are private by default, while struct members and inheritance are public by default
+ 2
Behind that say aklex thare is a semantic difference.. struct its used for make data agglomeration (only data) while class its used for define a type with data and behaviours
0
we cant write functions it and once structures are created can b accesd by any one in class we have three access specifier