Itential Interview Question

Why would you use polymorphism and inheritance in coding?