Cognizant Interview Question

Write a code of method overriding in python