Composite

Noun · Development

Definitions

  1. A structure or design pattern in which simple and complex objects are treated through the same interface by composing smaller parts into larger wholes. The composite pattern is common in UI trees, file hierarchies, and document models where parent and leaf elements need to be processed uniformly.

    In plain English: A pattern or structure where simple items and groups of items share the same interface.

    Example: "The menu renderer used a composite so a submenu could be treated the same way as a leaf action when walking the tree."

Related Terms