From e95e1eac772376d04517b9b334a221637b87595a Mon Sep 17 00:00:00 2001 From: 949478479 <949478479@qq.com> Date: Wed, 23 Dec 2015 13:31:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E2=80=9C=E9=87=8D=E5=86=99=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E8=A7=82=E5=AF=9F=E5=99=A8=E2=80=9D=E5=B0=8F=E8=8A=82?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/chapter2/13_Inheritance.md | 1 + 1 file changed, 1 insertion(+) diff --git a/source/chapter2/13_Inheritance.md b/source/chapter2/13_Inheritance.md index 67089fe5..91e9d5c6 100755 --- a/source/chapter2/13_Inheritance.md +++ b/source/chapter2/13_Inheritance.md @@ -198,6 +198,7 @@ print("Car: \(car.description)") // Car: traveling at 25.0 miles per hour in gear 3 ``` + #### 重写属性观察器(Property Observer) 你可以通过重写属性为一个继承来的属性添加属性观察器。这样一来,当继承来的属性值发生改变时,你就会被通知到,无论那个属性原本是如何实现的。关于属性观察器的更多内容,请看[属性观察器](../chapter2/10_Properties.html#property_observers)。