Practice free →
Home › Per Nystrom (Service Locator), the Service Locat…

Per Nystrom (Service Locator), the Service Locator pattern provides which feature?

AReflection-only RTTI dispatch always
BCompile-time IoC injection mechanism only
CStrict singleton enforcement at all times
DGlobal access with swappable implementation
Answer & Solution
Correct answer: D. Global access with swappable implementation
Nystrom Ch. Service Locator: a global registry lookup returns a service (e.g. audio). Implementation can be swapped (real, null, log).
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions