Wipron Technology interview question

Explains OOPs concept with a code.