AMD interview question

How does class inheritance work in C++?