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:
internal - access allowed within the same packageprivate - access allowed only within the same classprotected - access allowed to the class and its child classespublic - unfettered access by all
function checkResources():Boolean {
...
return true;
}
public function checkResources():Boolean {
...
return true;
}