Siemens interview question

Describe inheritance in cpp, and give an example