Pergunta de entrevista da empresa Telstra

Why we use object oriented programming and explain inheritance using an example.