Skip to content

Commit

Permalink
Update EffectiveC++.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lllittletree authored Apr 2, 2019
1 parent ba88729 commit 64e2833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C++/EffectiveC++.md
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ result = 2 * oneHalf; // Error
### 1)增加封装性

如果成员函数返回hadles,那么相当于成员变量的封装性从private上升到public。这与[条款22](#条款22将成员变量声明为private)相悖
如果成员函数返回handles,那么相当于成员变量的封装性从private上升到public。这与[条款22](#条款22将成员变量声明为private)相悖

### 2)使得“通过const修改对象的数据”成为可能

Expand Down

0 comments on commit 64e2833

Please sign in to comment.