Chaining is a common term that has several different meanings. This episode explains how you can use chaining in your programs and how it works.

This episode describes four kinds of chaining:

  • Object instance chaining as in a linked list or even from parent to child nodes in a binary tree.
  • Method call chaining as when methodA calls methodB which then calls methodC.
  • Class inheritance chaining which results in a parent-child relationship among your class hierarchy.
  • And finally operator chaining when you have multiple operators in a compound statement.

The last type of chaining was the chaining that I had in mind when I started preparing this episode. But then I added the other chaining types too. They seem to fit well and should give you some extra relationships in your own mind to help relate programming topics.