Pergunta de entrevista da empresa SAP

How does inheritance works in javascript