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

 

Warning: fopen(wiki.d/.flock) [function.fopen]: failed to open stream: Permission denied in /home/hesam/public_html/pmwiki/pmwiki.php on line 417

PmWiki can't process your request

Cannot acquire lockfile

We are sorry for any inconvenience.