Class
A class is type or thing in the microworld. Each object in the microworld belongs to a certain class. Class is an Object Oriented Programming terminology.
A class has a name, and may have properties, qualifications, actions, and goals defined.
A class in JOHN language is defined by the create command.
For instance, in the Chess sample microworld, Piece and Player are two examples of classes. A Player class has two instantiated objects: White and Black. The Player object has a win goal, and knows how to do a move action.
Page last modified on September 26, 2008, at 01:29 AM
simplaPoweredBy
Set in config.php to your own copyright notice