ISYS 303 - Ch 8-9 Flashcards

1
Q

Packages

A
  • groups of related classes

- help organize your code & provide another layer of encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Purpose of Packages

A
  1. 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.
    1. 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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Namespace Example:

A

vcx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly