A function prototype begins with the keyword function, then lists the function name, its parameters (if any), and return value (if any). The prototype includes no executable code. The prototype allows EGL to perform type checking on function calls without having direct access to the function itself.
A Delegate part conveys the same general information that a function prototype does, but in a different form (see Delegate part).
ExternalType TaxModule type JavaObject // Define public variables adjustedGrossIncome FLOAT; companyName STRING; // Define function prototype function calculateTax (adjIncome FLOAT) returns (FLOAT); // Define constructor prototype constructor (taxAuthority STRING); end