Pergunta de entrevista da empresa Tata Consultancy Services

Explain OOP concepts by writing a program.