“属性”第一段
This commit is contained in:
@ -0,0 +1,3 @@
|
|||||||
|
# 属性 (Properties)
|
||||||
|
|
||||||
|
**属性**将值跟特定的类、结构或枚举关联。一种是存储属性,把常量和变量的值作为实例的一部分,一种是计算属性,它计算一个值。计算属性可以用于类、结构和枚举里,存储属性只能用于类和结构。
|
||||||
Reference in New Issue
Block a user