Universal variables -
04-08-2013, 11:43 AM
Alice 3.1 uses an object oriented implementation, designed to support learning Java. As in Java, there really is no such thing as universal variables in Alice 3. The fields that you created in the Scene class belong to the scene and not to the entire program...
Fields created in the Program belong to the Program class.
Fields that you create in the Scene must be passed as parameters to the class methods of other classes that would like to use them.
Don Slater
Alice Team
Carnegie Mellon University
|