Pergunta de entrevista da empresa Luxoft

there was a question about design patterns and virtual functions.