Xoriant interview question

Basic OOPs concepts