Texas Instruments interview question

idea to implement polymorphism in C