struct Person {
// define two properties
var name: String
var age: Int
}
// object of Person with memberwise initializer
var person1 = Person(name: "Dwight", age: 43)
print("Name:", person1.name)
print("Age:", person1.age)
struct Person {
var name = ""
}
struct Person {
// properties with no default values
var name: String
var age: Int
}
// instance of Person with memberwise initializer
var person1 = Person(name: "Kyle", age: 19)
print("Name: (person1.name) and Age: ( person1.age)")