Error 6090 - Cannot access protected property or method
The problem here is that you did not change the access for myLibrary
from protected to public.
A protected property in the Book class can only be accessed by a method of the
Book class.
JadeScripts cannot access protected properties.
Instructions
- Select the Book class.
- Double click the myLibrary property.
The Define Reference dialog is displayed.
- Select the public access option button.
- Click the OK button.
- Select the JadeScript class.
- Select the createLibraryAndBooks method.
- Select the Methods | Compile Method menu command.
The status line in the Class Browser displays the message
«Compilation complete - no errors»
- Select the Jade | Execute it menu command.
The status line displays the message
«Execution complete»
|