Tcl Medium · Lesson 3

TclOO classes: constructors, methods, my and self

Define classes with oo::class, give objects state with variable, call your own methods with my, hide helpers, clean up in a destructor and inspect objects.

Lessons · Tcl Medium · Lesson 3 of 10

TclOO classes: constructors, methods, my and self

Define classes with oo::class, give objects state with variable, call your own methods with my, hide helpers, clean up in a destructor and inspect objects.

Illustration for Tcl
Define classes with oo::class, give objects state with variable, call your own methods with my, hide helpers, clean up in a destructor and inspect objects.