Question 1/12: This code is valid Swift – true or false?
Hint: Click to show.
struct Conference {
var name: String
var location: String
init(name: String, location: String) {
self.name = name
self.location = location
}
}
let wwdc = Conference(name: "WWDC", location: "San Jose")
Link copied to your pasteboard.