Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Struct Instances Swift

struct Person {

  var name = " "
  var age = 0
}

// create instance of struct
var person1 = Person()
 
PREVIOUS NEXT
Tagged: #Struct #Instances #Swift
ADD COMMENT
Topic
Name
8+9 =