struct:
1.no inheritance 不能繼承
2.passed by value 值傳遞 (傳遞時(shí),會(huì)復(fù)制copy一份券腔,在棧stack上)
3.its initializer that, whose arguments are all of its vars
class:
passed by reference 引用傳遞(儲(chǔ)存在堆heap迫肖, 當(dāng)傳遞給method時(shí),實(shí)際傳遞的是指針pointer,實(shí)際上指向的是同一個(gè))