Multiple choice technology databases

Which object in PL/SQL provides encapsulation features ?

  1. Procedure

  2. Package

  3. Functions

  4. All

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Packages provide encapsulation by bundling related procedures, functions, variables, and cursors together, with public/private specifications controlling access. Procedures and functions are individual program units, but only packages offer true encapsulation through the package specification and body structure. Packages also support session-specific state persistence.