Pregunta de entrevista de Cisco

Polymorphism and OOPS, also code of oops was asked to write..