[Chapter 2] 2.10 Hiding Package Data  Advanced Oracle PL/SQL
Programming with Packages  Advanced Oracle PL/SQL Programming
with PackagesSearch this book Previous: 2.9 Modularizing for
Maintainable PackagesChapter 2 Best Practices for Packages Next:
2.11 Simultaneous Construction of Multiple Packages  2.10 Hiding
Package Data  You implement PL/SQL-based global data with
package data. Package data is any data structure declared in a
package body or specification. There are two kinds of package
data: public data (declared in the specification) and private
data (declared in the body).  What's the difference between
public and private? Public global data is the proverbial "loose
cannon" of programming. Public package data is certainly very
convenient. Simply declare a few variables in a package
specification and they are available from/to any module. If you
need to get a piece of information, just grab it from the
global. If you want to change the value of that variable, go at
it. Reliance on global data structure