Now that you're familiar with the package and you've got CVS setup, you' re ready to start the porting. You can reuse these tests for testing the Java port after you've finished the porting. Start by porting the Tcl library code. Identify a set of Java class abstractions that can contain the code you are porting. The equivalent of Tcl library functions in Java are static methods .
Static methods are stateless functional calls attached to an object.
Because there is no state involved, you don't need to instantiate a class to start working with the method. In some cases, you will want to create classes that represent state using member variables. Objects are nothing more than state with associated methods that provide functionality that require that state. Using objects provides a better means of organizing the variables and methods that provide functionality than relying solely on static methods. For example, the ACSSession class encapsulates all of the session property information into one object.