Chapter
Data Visibility
From ComputerScienceOne by Dr Chris Bourke
Concepts
- How are Java classes organized and stored in source files?
"Recall that a package declaration allows you to organize classes and code within a package (directory) hierarchy. Moreover, source code for a class must be in a source file with the same name (and is
- What are the visibility levels used to protect Java data?
"Recall that encapsulation involves not only the grouping of data, but the protection of data. To provide for the protection of data, Java defines several visibility keywords that specify what segment