Multiple choice technology databases

Private constructs in the package body are hidden and inaccessible. Is this an advantage of a package?

  1. a)Yes

  2. b)No

  3. c)

  4. d)

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

Yes, hiding private constructs in the package body is a key advantage of packages. This implements information hiding and encapsulation - the package specification exposes only what users need, while implementation details remain private and inaccessible. This prevents users from depending on or misusing internal implementation details, allowing the package developer to change the internal logic without affecting users.