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

Which structural design pattern dynamically attaches additional responsibilities and behavior to an object without modifying its original source code?

AAdapter Pattern
BProxy Pattern
CDecorator Pattern
DComposite Pattern

Explanation

The Decorator pattern wraps an object to dynamically extend its functionality at runtime without inheritance.

Submitted by: mcqstutor Team More Software Engineering MCQs →

No Comments

Leave a comment

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