employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

I was asked to explain the difference between abstraction and encapsulation in object-oriented programming. I explained that abstraction focuses on hiding implementation details and showing only essential features, while encapsulation is about wrapping data and methods into a single unit with access control.