Pergunta de entrevista da empresa Deem

Basic OOPs concept related question.