What are the main functions of abstraction?
💡 Model Answer
Abstraction is the process of exposing only essential features of an entity while hiding unnecessary details. Its main functions are: 1) Simplification – it reduces complexity by presenting a high‑level view. 2) Encapsulation – it bundles data and behavior together, protecting internal state. 3) Reusability – abstract components can be reused across different contexts. 4) Maintainability – changes to implementation details do not affect consumers. For example, a database access layer abstracts SQL queries behind a repository interface, allowing the rest of the application to interact with data without knowing the underlying database.
This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.
🎤 Get questions like this answered in real-time
Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.
Get Assisting AI — Starts at ₹500