From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/glossary/encapsulation/index.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 files/zh-cn/glossary/encapsulation/index.html (limited to 'files/zh-cn/glossary/encapsulation/index.html') 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 +--- +

Encapsulation (封装)是指将数据与函数打包到一个组件(例如,类)中,使得外部对于该组件对象的访问如同一个“黑盒子”一样。如此一来,类的使用者只需知道它的接口(即类对外暴露的数据与方法),而无需关心其内部是如何实现的。

+ +

 

+ +

了解更多

+ +

基础知识

+ + -- cgit v1.2.3-54-g00ecf