Difference between revisions of "Struct Reference"

No change in size ,  19:57, 15 June 2018
m
Fixed a typo: changed "is other languages" to "in other languages".
imported>Qazaaq
(Changed the structure array example)
imported>Homecom
m (Fixed a typo: changed "is other languages" to "in other languages".)
 
Line 1: Line 1:
Structs are basically mini-objects that can hold several variables of different types, but cannot contain functions or events, and cannot extend any objects or other structs. However, like objects (and unlike structs is other languages) they are passed and held onto by reference, not by value. Structs may be used in arrays.
Structs are basically mini-objects that can hold several variables of different types, but cannot contain functions or events, and cannot extend any objects or other structs. However, like objects (and unlike structs in other languages) they are passed and held onto by reference, not by value. Structs may be used in arrays.


== Defining a Struct ==
== Defining a Struct ==
Anonymous user