Fields and properties
Structures (records)
Definition and initialization
Constructors
Methods
Fields and properties
Constants
Subscripts (indexer methods)
Type members
Inheritance
Nested structures
Non-copyable structures
struct
ColorPoint
{
//In Swift there are no fields
var
x, y:
Int
//Property
var
Color: Brush
}
Languages
C
C++
Java
C#
JavaScript
Rust
Golang
Delphi
PHP
Ruby
Kotlin
TypeScript
Objective-C