struct

noun 1

Definitions

noun

1

A data structure, especially one that serves to group a number of fields (in contrast to an object-oriented class with methods) or one that is passed by value rather than by reference.

Note that because structs are value types, the new operator does not work in the same way as it does for classes and other reference types.

Like most object-oriented languages, including Objective-C, Swift supports two basic object-oriented data structures: classes and structs.

Your note

not saved
0 chars