Let‘s assume, we don‘t know a priori if we want or need this method, i.e. that the decision can only be made at runtime.
The decision might depend on configuration files, user input or some calculations.
In the following example it depends on the user input.