Mid GoF Patterns

Component Interface (IFileSystemComponent):?

  • Both File and Directory implement the IFileSystemComponent

interface, which defines the common method ShowInfo(). This allows us to

treat both files and directories uniformly.

More from Design Patterns in C#

All questions for this course