Luxoft interview question

there was a question about design patterns and virtual functions.