编程中封装
Encapsulation in programming is the process of combining elements to create a new entity for the purpose of hiding or protecting information. In object-oriented programming, encapsulation is an attribute of object design. It means that all of the object's data is contained and hidden in the object and access to it is restricted to members of that class.
编程中的封装是为了隐藏或保护信息而组合元素以创建新实体的过程。 在面向对象的编程中,封装是对象设计的属性。 这意味着对象的所有数据都包含在对象中并隐藏在对象中,并且对该对象的访问仅限于该类的成员。