What's the main difference between structure and class? | Sololearn: Learn to code for FREE!
+ 1

What's the main difference between structure and class?

3rd Apr 2017, 11:01 AM
Anonymous
Anonymous - avatar
2 Answers
3rd Apr 2017, 1:46 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
structure is collection of variable user single name .class is the collection of data members and functions .datamember->variable
3rd Apr 2017, 12:23 PM
surya kumar
surya kumar - avatar