Pergunta de entrevista da empresa Temenos

What is inheritence explain it with a code ?