Pergunta de entrevista da empresa AMD

How does class inheritance work in C++?