public void handle() { if (head != null) { Console.WriteLine($"{head}"); head.handle(); } }
public void handle() { bool handled = doHandle(); if (successor != null && !handled) { successor.handle(); } }