Domanda di colloquio di Itential

Why would you use polymorphism and inheritance in coding?