网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Data hiding
释义

Data hiding

中文百科

封装 (面向对象编程) Information hiding

(重定向自Data hiding)

在面向对象编程方法中,封装英语:Encapsulation)是指,一种将抽象性函式接口的实作细节部份包装、隐藏起来的方法。同时,它也是一种防止外界调用端,去访问对象内部实作细节的手段,这个手段是由编程语言本身来提供的。这两个概念有一些不同,但通常被混合使用。封装被视为是面向对象的四项原则之一。

适当的封装,可以将对象使用接口的程序实作部份隐藏起来,不让用户看到,同时确保用户无法任意更改对象内部的重要数据。它可以让代码更容易理解与维护,也加强了代码的安全性。

英语百科

Information hiding 封装 (物件导向程式设计)

(重定向自Data hiding)

In computer science, information hiding is the principle of segregation of the design decisions in a computer program that are most likely to change, thus protecting other parts of the program from extensive modification if the design decision is changed. The protection involves providing a stable interface which protects the remainder of the program from the implementation (the details that are most likely to change).

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/23 15:47:31