Umm, what good is dependency injection if you specify that the argument to the constructor is a Mercedes rather than just a Car? That's a compile-time dependency you've just put on the Mercedes class, and seems to be the opposite of what you want when trying to do dependency injection.
Yes you are right its compile time. In practical applications, its done through config files. But the example shown was to just give an example how dependency can be injected and a simplest possible example is that. :)