Java, Design Patterns, Structural Design Pattern, Software Engineering.
public class Client { public static void main(String[] args) { Directory root = new Directory("Root"); Directory folder1 = new Directory("Folder 1"); Directory folder2 = new Directory("Folder 2"); File file1 = new File("File 1.txt"); File file2 = new File("File 2.txt"); root.addComponent(folder1);