Next: , Previous: Class Creation Introduction, Up: Class Creation



2.2 Creating A Class File

— Variable: create class named className

Use this command to create a class you can edit. Actually, it technically only creates an object of class ClassControl, which you then use to write and compile the class.

— Variable: write class className

Takes text until you enter "EOF" on a line by itself, and puts that text in the class file. You must have run create class for this to work.

— Variable: compile class className

Compiles a class written using write class. Note that if your class has certain types of bugs, this will hang. You will be able to continue your activity in the MOZ, though, and try again if you like.