Siemens interview question

Basic OOPs concepts