Skip to content

Commit

Permalink
Update and rename 13.8 特征 to 13.8 特征(trait)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnRoadZy committed Jan 24, 2018
1 parent 7eb5f4e commit a7f2467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 13.8 特征 → 13.8 特征(trait)
@@ -1,4 +1,4 @@
13.8 特征
13.8 特征(trait)

一个特征类似于一个mixin,它封装了一组方法添加到一个类里。一个特征不同于一个mixin,它自己的方法是可以用特征运算符操控的,比如trait-sum(合并这两个特征的方法)、trait-exclude(从一个特征中移除方法)以及trait-alias(添加一个带有新名字的方法的拷贝;它不重定向到对任何旧名字的调用)。

Expand Down

0 comments on commit a7f2467

Please sign in to comment.