Description of Extended CAP Accessibility Example Illustration
The illustration depicts a scenario to describe the package level access under different access conditions (1, 2, and 3)
The illustration shows two green boxes. The first box has the title, CAP file 1: extended, applet and the second box has the title, CAP file 2: compact, applet. The CAP file 1: extended, applet box contains four boxes, which depict the packages: package1, package2, package3, and package4. The CAP file 2: compact, applet box contains a box, which depicts the package5.
The access modifiers and the components of the packages are as follows:
-
The package1 is a public package, which has a public class, Class1.
-
The package2 is a private package, which has a public class, Class2 .
-
The package3 is a public package, which has a public class, Class3, which extends the Applet class.
-
The package4 is a public package, which has two public classes, Class4, which extends the Applet class and Class5, which implements the Shareable interface.
-
The package5 is a default package, which has two public classes, Class6, which extends the Applet class and Class5, which implements the Shareable interface.