ISYS 303 - Ch 8-9 Flashcards
1
Q
Packages
A
- groups of related classes
- help organize your code & provide another layer of encapsulation
2
Q
Purpose of Packages
A
- provides a mechanism by which related pieces of a program can be organized by unit (Classes defined within a package must be accessed through their package name, thus a package provides a way to name a collection of classes.
- participates in Java’s access control mechanism. Classes defined within a package can be made private to that package and not accessible by code outside the package (thus, provides a means by which classes can be encapsulated)
3
Q
Namespace Example:
A
vcx