■ Enum

Enum can be used to create custom types with a finite set of ‘constant values

’ (see Enums in types section).

Link

Screen Shot 2022-04-28 at 10.48.35.png

Example


■ Struct

Structs are custom defined types that can group several variables (see Structs  in types section).

LInk

Screen Shot 2022-04-28 at 10.51.47.png

Example