...

/

Building a Complex Object Hierarchy

Building a Complex Object Hierarchy

Learn which design patterns to use when building a complex object hierarchy.

Let’s imagine that we need to construct a structure where objects need to act as containers for similar objects. It could be that we’re building a tree-like data structure. Perhaps we’re building a representation of a file storage system where folders can contain files and other folders.

Suitable design pattern

Let’s discuss the design ...