Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
Python and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Lua, etc

Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Tcl/Tk module T245
Exercises, examples and other material relating to training module T245. This topic is presented on public courses Learning to program in Tcl, Tcl Programming, Tcl Programming

[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
Loading incr-tcl into tclsh
Incr-Tcl - Object Oriented extension to Tcl

Articles and tips on this subjectupdated
4460Using Object Oriented Tcl and the Tk toolkit together - real life example
There are all sorts of ways to look at the survey data we gathered last October on the TransWilts trains, and one fact I'm particularly interested in is the journey lengths of passengers. I have all the information to hand that I need to work this out - but in different files: Survey data [here] Station ...
4456Objects in Tcl - iTcl - updated first steps example
iTcl is Tcl's Object Oriented package, and it's shipped as standard with Tcl these days. On many of our OO courses, we start off with an example of "train" objects and define and run methods such as "getCapacity" on them, and today I've taken that same example and coded it in Tcl - see [here]. My ...
3142Private 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 ...
1925Introduction 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, ...
1819Calling 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, ...
1528Object 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 ...
656Think 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 ...
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
ootcl01   Creating and using objects
ootcl02   Creating and using objects, cget and configure
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 [here].
Topics covered in this module
What is [incr-Tcl]?
Where do I get [incr-Tcl]?
"Hello Object World".
Constructors, methods, and objects.
Variable declarations.
Configure and cget methods on objects.
Inheritance, overloading and polymorphism.
Local, ensemble, find, delete and others.
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,Ruby, Lua, 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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2019: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • FAX: 01225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/T245.html • PAGE BUILT: Mon Feb 8 18:55:24 2016 • BUILD SYSTEM: WomanWithCat