aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/encapsulation/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/encapsulation/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/glossary/encapsulation/index.html')
-rw-r--r--files/zh-cn/glossary/encapsulation/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/encapsulation/index.html b/files/zh-cn/glossary/encapsulation/index.html
new file mode 100644
index 0000000000..5e2d1ae9e1
--- /dev/null
+++ b/files/zh-cn/glossary/encapsulation/index.html
@@ -0,0 +1,19 @@
+---
+title: Encapsulation
+slug: Glossary/Encapsulation
+tags:
+ - Encapsulation
+ - 封装
+translation_of: Glossary/Encapsulation
+---
+<p>Encapsulation (封装)是指将数据与函数打包到一个组件(例如,类)中,使得外部对于该组件对象的访问如同一个“黑盒子”一样。如此一来,类的使用者只需知道它的接口(即类对外暴露的数据与方法),而无需关心其内部是如何实现的。</p>
+
+<p> </p>
+
+<h2 id="了解更多">了解更多</h2>
+
+<h3 id="基础知识">基础知识</h3>
+
+<ul>
+ <li>维基百科上的 <a href="https://zh.m.wikipedia.org/zh-hans/封裝_(物件導向程式設計)">封装</a></li>
+</ul>