Stenway Developer Network

Packages

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
  
end
  
internal class MyInternalClass
  
end

A package can contain multiple entities in one single file.