Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

Encapsulation is the packing of data and functions into one component (for example, a class) and then controlling access to that component to make a "blackbox" out of the object. Because of this, a user of that class only needs to know its interface (that is, the data and functions exposed outside the class), not the hidden implementation.

Learn more

General knowledge

文档标签和贡献者

 此页面的贡献者: Andrew_Pfeiffer, hbloomer, klez, anupj, kscarfone, chunm
 最后编辑者: Andrew_Pfeiffer,