Object-oriented programming in TCL/TK

  • Authors:
  • Peter C. Isaacson

  • Affiliations:
  • Mathematical Sciences Department, University of Northern Colorado, Greeley, CO

  • Venue:
  • Journal of Computing Sciences in Colleges
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

[incr Tcl], an object-oriented extension for Tcl, will be used to introduce object-oriented concepts into the Introduction to Computer Science course at the University of Northern Colorado. Tcl, an extensible, scripting language, and Tk, an extension to Tcl for building GUIs, have previously been used successfully in the same course.[incr Tcl], written in 1993 by Michael McLennan of Lucent Technologies, has encapsulation, multiple inheritance, composition, and polymorphism (via virtual methods). Tcl itself contains namespaces which extend Tcl's use to large-scale projects.The [incr Tcl] extension allows the programmer to move from Tk's object-based orientation to true object-oriented capabilities.True to Tcl/Tk, [incr Tcl] accomplishes its object-oriented ability within the same simple, command-oriented syntax. Commands like class, inherit, constructor, and protected are used.