Stenway Developer Network


Declare package name

package MyLib

Dots are allowed in package names

package MyCompany.MyLib

Access Levels

Package entities are by default public. To define a package entity that is only visible inside of the package, use the internal keyword. Note, that there is no public keyword.

package MyLib

class MyPublicClass
internal class MyInternalClass

A package can contain multiple entities in one single file.