V2EX  ›  英汉词典

Encapsulation

释义 Definition

encapsulation(名词):封装;封闭包裹。常指把某物包在外层之中;在计算机领域尤指面向对象编程中将数据与操作数据的方法组合在一起,并对外隐藏内部细节,只提供必要的接口。(该词在材料/药学中也可指“微胶囊化”等工艺。)

发音 Pronunciation (IPA)

/ɪnˌkæpsjəˈleɪʃən/

例句 Examples

Encapsulation keeps the data safe.
封装能让数据更安全。

In object-oriented design, encapsulation reduces coupling by hiding internal state behind a clear interface.
在面向对象设计中,封装通过把内部状态隐藏在清晰的接口之后来降低耦合。

词源 Etymology

来自 encapsulate(封装、装入胶囊中)+ 名词后缀 -ion(表示“……的行为/过程”)。其中 capsule 源自拉丁语 capsula,意为“小盒子、小容器”,因此 encapsulation 字面意思就是“把东西装进小容器里”。

相关词 Related Words

文学与著作中的用例 Literary Works

  • The C++ Programming Language(Bjarne Stroustrup)
  • Design Patterns: Elements of Reusable Object-Oriented Software(Gamma, Helm, Johnson, Vlissides)
  • Clean Code(Robert C. Martin)
  • Object-Oriented Analysis and Design with Applications(Grady Booch)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   838 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 21:17 · PVG 05:17 · LAX 13:17 · JFK 16:17
♥ Do have faith in what you're doing.