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