Exercises, examples and other material relating to training module T245. This topic is presented on public courses
Learning to program in Tcl,
Tcl Basics
[incr-Tcl] is the Object Oriented extension to Tcl which is now available Open Source like the main language. This module looks at class and object definition and use, and how Tcl implements inheritance and overloading.
Related technical and longer articles
indexLoading incr-tcl into tclshIncr-Tcl - Object Oriented extension to Tcl
| Articles and tips on this subject | updated |
| 3142 | Private and Public - and things between A public train service is one which is available for anyone to travel on; a private one only takes limited passengers as invites / made available by the operator. And there could be intermediate levels too - I understand that at times the British Transport Police protect the last train from Weymouth ... | 2011-01-25 (longer) |
| 1925 | Introduction to Object Oriented Programming "Object Oriented Programming" is a whole new philosophy for programmers who have been writing short scripts for years, and it can be quite frightening to learn with all these new buzzwords like "overriding", "encapsulation" and "polymorphism" creeping in. It's a beautiful concept and a lovely approach, ... | 2008-12-10 (longer) |
| 1819 | Calling base class constructors In all object oriented languages, you have a facility called inheritance where you can define one type of thing ("class of object") based on another, and the newly defined class ("subclass" or "extended class") takes the initial ("base") class as it starting point.
In your code for your base class, ... | 2008-10-03 |
| 1528 | Object Oriented Tcl Object Oriented Tcl ([incr-Tcl]) is darned good - but it's only a requirement in a small proportion of the Tcl Training Courses that I give. So it was with real pleasure that I spent some time yesterday writing an example in front of my class in the Nottingham area to show them just how fabulous it ... | 2008-02-02 |
| 656 | Think about your design even if you don't use full UML Even if you don't feel that your project is big enough to get involved with formal design methods, many of the lessons of UML and some informal design diagrams can help you get a clear view of what you're going to be doing be for you start, and can help you come up a good, thought out and reliable plan ... | 2006-06-05 |
23ac
Examples from our training material
| animal.itcl | A simple class in [incr-tcl] |
| animal2.itcl | class that loads Itcl into basic Tclsh |
| bigger.itcl | [Incr-Tcl] Demonstration 2 |
| exv | Multiple classes and inheritance demonstration |
| film.itcl | [incr-Tcl] - Base class and two classes that inherit from it |
| find.itcl | List available classes in [Incr-Tcl] |
| hello.itcl | [Incr-Tcl] Demonstration |
| inherits.itcl | Multiple inheritance and constructor calls |
| itlist | Using [incr-Tcl] to hold a list of objects |
| pet.itcl | itcl - second sample class |
| petal | Example that loads Itcl into tclsh |
| weekend.itcl | [incr-Tcl] - Inheritance and Polmorphism - main file |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Introduction.
Hello Object World.
The application.
The class used.
Other facilities in simple objects.
Inheritance in [incr-Tcl].
Multiple inheritance.
Other commands available in [incr-Tcl].
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Tcl/Tk, Expect,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.