package (primitive)
Package: CURL.LANGUAGE.CORE-TYPES

Attribute name specifying a package protected definition.

Description

The access attribute indicates the code that can access the method. The access attribute is also known as the protection attribute. For code to access a method, the code must first have access to the class containing the method. Specifying the access attribute is optional.

Use package if you want to restrict access to code that is in the same package as the definition.

For fields, package is equivalent to writing both package-get and package-set.

Also see public, protected, and private.