Tcl Medium · Lesson 4

TclOO inheritance: superclass, next, oo::define and mixins

Inherit with superclass, chain to parent constructors and methods with next, add methods to live classes, and layer behaviour in with mixins.

Lessons · Tcl Medium · Lesson 4 of 10

TclOO inheritance: superclass, next, oo::define and mixins

Inherit with superclass, chain to parent constructors and methods with next, add methods to live classes, and layer behaviour in with mixins.

Illustration for Tcl
Inherit with superclass, chain to parent constructors and methods with next, add methods to live classes, and layer behaviour in with mixins.