NTT DATA interview question

Explain oop concept with an example of each