ITPEC FE Subject A October 2024 Question 36
ITPEC FE Subject A October 2024 — Question 36 of 60
Delegation in OOP — an object forwards a request to another object to handle it.
Delegation means an object does not perform an operation itself but internally asks another object to do it on its behalf.
Why not others:
- (a) Composition — building one object from multiple component objects
- (b) Inheritance — a subclass inherits attributes/operations from a superclass
- (c) Propagation — applying an operation to one object automatically triggers it on related objects
Key rule: Delegation = "I can't/won't do this myself, so I ask another object to do it for me."
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.