package Node; ... sub isLeaf { 0 } ... package Leaf; ... sub isLeaf { 1 }