9101112131415
public static void main(String[] args) { Printer printer = new Printer(); printer.print(new Parent()); printer.print(new Child()); }