Pergunta de entrevista da empresa Tata Consultancy Services

Oops concepts , what is inheritance