Tags heitml Functions Database Access Global Variables Form Fields Server Variables Sessions heitml Syntax Component Ref. Each h ei tml class has a name and methods. Method definitions can be placed inside class definition. Methods inside a class definition directly belong to that class. They are called nested methods in contrast to the top level methods.
Classes can have a single special method called constructor .
The constructor has the same name as the class and it is defined implicitly when the def or defenv tag is used to define the class. An object of a particular class can be created by calling the constructor method of that class. The constructor method has the same name as the class. In addition to a normal method call, a constructor call creates an object of the current class. The constructor can access the object by using the this key word.