In Object-Oriented Programming (OOP), what term describes the fundamental concept of bundling data (attributes) and the methods (functions) that operate on that data into a single unit, often restricting direct access to some components?
💡 Explanation:
Encapsulation is one of the four core pillars of Object-Oriented Programming (OOP). It involves packaging data and the code that operates on that data together, often hiding the internal representation or state of an object from the outside world (data hiding).