Composite pattern Page

Composite Pattern



Return to Design patterns

{{navbar_design_patterns}}

"composite pattern - a recursive design pattern that allows a single object or a group of objects to be treated uniformly for a common subset of operations via a common supertype; this pattern is useful for implementing part-whole hierarchies, such as a file system in which an object of the abstract Inode supertype is either a concrete composite Directory object, containing zero or more Inode objects, or else a concrete leaf File object. final (1020)" (EMCppSfe 2021)

{{navbar_footer}}