Calling class methods recursively in class hierarchies.