From f2d7d03643a56a5eb7e9bf236ec3d235840c6718 Mon Sep 17 00:00:00 2001 From: Shiny Zhu Date: Fri, 6 Jun 2014 10:39:07 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E5=B1=9E=E6=80=A7=E2=80=9D=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/chapter2/10_Properties.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/chapter2/10_Properties.md b/source/chapter2/10_Properties.md index e69de29b..a12beec8 100644 --- a/source/chapter2/10_Properties.md +++ b/source/chapter2/10_Properties.md @@ -0,0 +1,3 @@ +# 属性 (Properties) + +**属性**将值跟特定的类、结构或枚举关联。一种是存储属性,把常量和变量的值作为实例的一部分,一种是计算属性,它计算一个值。计算属性可以用于类、结构和枚举里,存储属性只能用于类和结构。 \ No newline at end of file