Access modifiers define which classes can access properties, variables, methods, and other classes. If an access modifier is not specified, the access level defaults to internal, which grants access to all classes in the same package. This may be what is intended, but it should be specified explicitly to avoid confusion.

Available access modifiers are:

Noncompliant Code Example

function checkResources():Boolean {
  ...
  return true;
}

Compliant Solution

public function checkResources():Boolean {
  ...
  return true;
}