Pergunta de entrevista da empresa Tata Consultancy Services

what is inheritance,polymorphism, real time example of them