Ericsson interview question

How to mimic virtual function calls in C?