You don’t need to think about too complicated theories and definitions. Just create a new playground and experience the following code to understand.
struct Structure {
var string = ""
var number = 0
}
let sA = Structure()
let sB = Structure(string: "hello", number: 100)
print(sA)
print(sB)
class Class {
var string = ""
var number = 0
}
let cA = Class()
print(cA)
// let cB = Class(string ....) // 不可以
You don’t need to think about too complicated theories and definitions. Just create a new playground and experience the following code to understand.