The problem here is that you did not change the access for
author (or isbn, or title) 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 author property (or whichever property is highlighted in the code window).
The Define Attribute dialog is displayed.
- Select the public access option button.
- Click the OK button.
- Select the JadeScript class.
- Select the createBorrowers method.
- Select the Methods | Compile Method command.
The status line in the Class Browser displays
«Compilation complete - no errors»
- Select the Jade | Execute it menu command.
The status line will then display the message
«Execution complete»
|