Pregunta de entrevista de NSIQ Infotech

Difference between lookup and master-detail. Write code for polymorphism