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.
Loading...
Related Quiz
- You're tasked with optimizing resource utilization in a virtualized environment. How would you leverage container orchestration tools to achieve this goal?
- To improve security in Node.js applications, developers should use ___________ to prevent vulnerabilities.
- What are the different types of NoSQL databases, and how do they differ from each other?
- Which SDLC model is best suited for large projects with uncertain or evolving requirements?
- How does the Aging technique improve the performance of priority-based scheduling algorithms?