Design patterns·Wrapping and composing
the object holds another object and forwards most calls to it, and which pattern that is depends entirely on why.
Wrapper
Also calledwrapping object, wrapping
The shape shared by adapter, decorator, proxy and facade: an object that holds another and passes work through. Because the code looks nearly identical in all four, the name is chosen by intent — to change an interface, to add behaviour, to control access, or to simplify a subsystem — and that is exactly what the interview question is testing. Calling something a wrapper is honest when the intent is genuinely none of the four.