Pergunta de entrevista da empresa TOPIC

Write down in C++ two classes that one inherits from the other. Add methods and members. Which method is going to be executed if you have an instance of the child class?