Pregunta de entrevista de Apolis

basic OOP questions, with one hand on coding problem.