Domanda di colloquio di Cognizant

can you explain inheritance and polymorphism