Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

Which structural design pattern composes objects into tree structures to represent part-whole hierarchies, allowing clients to treat individual objects and compositions uniformly?

AFacade Pattern
BComposite Pattern
CDecorator Pattern
DAdapter Pattern

Explanation

The Composite pattern lets clients treat individual objects and groups of objects in a tree structure identically.

Submitted by: mcqstutor Team More Software Engineering MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *