OTcl OTcl usually refers to an object oriented extension of Tcl created by David Wetherall at MIT.〔(OTcl Project Page )〕 It is used in network simulator (NS-2) and usually run under Unix environment.〔Eitan Altman and Tania Jiménez, (NS Simulator for beginners ), Lecture notes, 2003-2004, Univ. de Los Andres, Merida, Venezuela and ESSI, Sophia-Antipolis, France〕 This was later extended into XOTcl. OTcl may also refer to the unrelated IXI Object Tcl extension by Dean Sheenan. These object Tcl extensions predate the more popular incr Tcl. == Syntax Introduction == The reserved word ''Class'' is used to represent class and method of class are declared using word ''instproc''.〔 The variable ''self'' is pointer to the class it is used in and is equivalent to variable ''this'' of C++/Java. The keyword ''-instproc'' is used for defining hierarchy.〔 For example ''Class Son -instproc Father'' means that ''class Son'' inherits from ''class Father''. To create an instance of class son we can write ''set new_inst (Son )''. Following is a simple example of code.