Joke Collection Website - Mood Talk - Benefits of packaging

Benefits of packaging

Advantages of encapsulation: reusability, no need to care about specific implementation, one of the three characteristics of object-oriented, security.

Encapsulation, that is, hiding the attributes and implementation details of the object, only exposing the interface to the outside world, and controlling the access level of reading and modifying the attributes in the program; Combine abstract data with behavior (or function) to form an organic whole;

In other words, the source code of data and operation data are organically combined to form a "class", in which both data and functions are members of the class. In electronics, packaging refers to connecting the circuit pins on the silicon chip to external connectors with wires to connect with other devices.

Extended data:

It can be seen from encapsulation that some members act as interfaces between the class and the outside, while others are hidden, thus realizing reasonable control over the access rights of members;

Minimize the interaction between different classes, thus enhancing the security of data and simplifying programming.

An important index to measure the advanced degree of a chip packaging technology is the ratio of chip area to packaging area. The closer this ratio is to 1, the better. The purpose of packaging is to protect the chip from or less affected by the external environment, provide it with good working conditions, and make the circuit have stable and normal functions.