Cognizant interview question

Write a code of method overriding in python