In object-oriented programming, what concept involves hiding the internal states and requiring all interaction to be performed through well-defined interfaces?

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
'Encapsulation' is a key concept in object-oriented programming that involves bundling the internal state and methods into a single unit (a class) and allowing interaction through well-defined interfaces, thus hiding implementation details.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *