Struct
Definition, Meaning & Examples
Part of speech noun
Quick meaning: Struct is a noun meaning (computing, programming) 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.
Meaning
(computing, programming) 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.
Example Sentences
Like most object-oriented languages, including Objective-C, Swift supports two basic object-oriented data structures: classes and structs.
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.
Word Forms
- structs
Synonyms for struct
Depending on context, synonyms include structure, record.
Related Words
Related dictionary entries include extern, shape, record, structure, handle, datastructure.
Related Dictionary Tools
Sources & Attribution
FreeDictionaryAPI.com / Wiktionary · Original source · CC BY-SA 4.0
Dictionary data is provided by FreeDictionaryAPI.com and sourced from Wiktionary under its stated license.