Siemens Interview Question

Describe inheritance in cpp, and give an example