Pregunta de entrevista de Hexagon

How do you implement inheritance in a real world example?