Cognizant interview question

Dynamic and compile time polymorphism and how we acheive it