Pergunta de entrevista da empresa Apolis

basic OOP questions, with one hand on coding problem.