Struct is used when we need to declare small lightweight object like RGB color, Point with X and Y co-ordinate
The same logic can be declared using Classes as well
Source • Blame • Git History
Struct is used when we need to declare small lightweight object like RGB color, Point with X and Y co-ordinate
The same logic can be declared using Classes as well