Pergunta de entrevista da empresa Tata Consultancy Services

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.