Coforge interview question

Basic OOPs concepts were asked