【发布时间】:2016-07-07 14:02:59
【问题描述】:
我知道信息隐藏和封装不一定是一回事,但从定义上看,它们似乎是同义词。这让我想知道一个人是否可以在没有另一个人的情况下存在。
【问题讨论】:
-
实际上,维基百科文章中关于与 OOP 相关的封装的前几句话完美地回答了这个问题:en.wikipedia.org/wiki/Encapsulation_(computer_programming)
标签: oop encapsulation information-hiding