Luxoft Interview Question

there was a question about design patterns and virtual functions.