While describing iterator pattern on previous post I mentioned it was a part of a bigger chapter in the Head First: Design Patterns book. The second design pattern described in the chapter is called composite. The composite pattern helps us create tree structures in our code. The book example this time is pretty straight-forward but …
Tag Archive: composite
Permanent link to this article: https://blog.lukaszewski.it/2013/11/19/design-patterns-composite/