Pergunta de entrevista da empresa Coolblue

How does prototype inheritance work?