Home News DOC Class DL Others Rice
DOC  >  Entry point of execution
Entry point of execution

entry point

The Cooker generates an interpreter by reading the Rice source file when it is instructed to execute the program. Then, the interpreter calls the start() method of the main class and executes it.

The calling and execution of the start() method is the starting point of program execution. This is called entry point of execution.

open method void start()

Program execution begins with the start() method of the main class. Therefore, the main class must have the definition of the start() method.

The outline of the start() method definition is shown below.


open method void start()


// Method definition.



As shown above, start() is an open method with the name "strat" with no arguments and no return value.

Even if there is a return value, it is meaningless because it is ignored.

Copyright © Rice All rights reserved.