In OOP, ___________ is the process of combining data and functions into a single unit.

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
Encapsulation is the process of bundling data (attributes) and functions (methods) that operate on the data into a single unit called a class. It helps in hiding the internal state of an object and only exposing the necessary functionality to the outside world. This enhances security, modularity, and reusability in object-oriented programming.
Add your answer
Loading...

Leave a comment

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