Pregunta de entrevista de AMD

How does class inheritance work in C++?