IGDTUW 2025 — Computer PYQ
IGDTUW | Computer | 2025What does 'Abstraction' focus on in C++?
Choose the correct answer:
- A.
Showing only the essential features of an object and hiding unnecessary complexity.
(Correct Answer) - B.
Connecting the computer to a network.
- C.
Making sure the program runs as fast as possible
- D.
Writing code that can only be understood by the compiler.
Showing only the essential features of an object and hiding unnecessary complexity.
Explanation
The correct answer is (a) Showing only the essential features of an object and hiding unnecessary complexity.
Explanation
Abstraction is a fundamental principle of Object-Oriented Programming (OOP) that allows developers to manage complexity by focusing on the "what" rather than the "how". It provides a simplified interface for an object, allowing the user to interact with essential features while the intricate, underlying implementation details remain hidden.
Conceptual Mathematical Model
If we represent the total information of an object as Itotal, we can decompose it into essential features Iessential and implementation complexity Icomplexity:
Itotal=Iessential+Icomplexity
Abstraction functions as a filter that exposes only the essential interface to the user:
Viewable_Interface=Iessential
By separating these components, we maintain:
Hidden_Details=Icomplexity
