+ 2
What is the difference bw class and structure.
3 Answers
+ 8
The syntax and functionality of both are same The main difference that exists between them is regarding the access modifier; the members of a class are private by default, whereas members of a struct are public by default. A class in C++ is just an extension of a structure .
+ 4
You can refer to :
https://www.sololearn.com/discuss/564907/?ref=app
0
thnx guys