Swift
Struct data type in Swift
In Swift, a struct is a value type that allows you to encapsulate related properties and behaviors into a single compound type. Structs are used to create custom data types and are similar to classes in many ways, but they have some key differences. Here's a basic example