Mid GoF Patterns

Composite (Directory):?

  • The Directory class is a composite node in the tree structure. It can

contain multiple IFileSystemComponent objects (both files and

subdirectories). The ShowInfo() method displays the directory’s name and

Follow:

recursively calls ShowInfo() on its children (whether they are files or

subdirectories).

More from Design Patterns in C#

All questions for this course