From Apple book
“One of the most important differences between structures and classes is that structures are always copied when they are passed around in your code, but classes are passed by reference.”

Can anyone help me understand what that means? To me, classes and structs seem to be the same.

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *