Amazon Interview Question
Software Engineer / DevelopersI was asked a similar question but in a different flavor(something in the lines of how prog lang compiler identifies which function to call..in the context of virtual functions and overloaded functions).
Guess he was expecting something in the lines of vtable. I gave my understanding of how it could be done, admitting my ignorance of what actually happens, he hinted me about vtable.
A general suggestion, although for most of the questions they ask, they expect direct/correct answers, for some questions, they look for your understanding and not necessarily the exact answer. So attempt to give your understanding of what ever is asked.
It is implemented by virtual function(late binding) and overload function(early binding)
- anonymous November 14, 2008