Java, Design Patterns, Structural Design Pattern, Software Engineering.
components.add(component); } public void removeComponent(FileSystemComponent component) { components.remove(component); } @Override public void printName() { System.out.println("Directory: " + name); for (FileSystemComponent component : components) { component.printName(); } } } In this