Encapsulation is the principle whereby the functions, calculations, extraction routines, and programs are linked with the data. To illustrate, an employee is an entity. Encapsulation would consist of the employee attributes (e.g., name, age, weight, address) and programs or methods (e.g., age calculation, wage calculations, retirement calculation) to be in one class. Oracle9i allows the developer to link these functions, calculations, extraction routines, and programs into a grouping called a package.
Packages offer the developer several important benefits:
Object-oriented capabilities. The developer can group all PL/SQL components into a logical group. The developer can maintain better control of objects by using these groupings.