Question d’entretien chez Arthrex

Explain the differences between a Swift struct and a class.

Réponse à la question d'entretien

Utilisateur anonyme

14 mai 2017

structs are always passed by value and class instances are passed by reference. structs do not inherit properties or behavior from another existing type. structs are preferable if they are relatively small and copy-able.