The service locator behavioral pattern allows you to make use of an interface without knowing what class implements the interface.
See All 304 Episodes of "Take Up Code"