What is an abstraction in object-oriented programming?
2026
What is an abstraction in object-oriented programming?
- A.
Hiding the implementation
- B.
Hiding the important data
- C.
Hiding the implementation and showing only the features
- D.
None of the above
Attempted by 192 students.
Show answer & explanation
Correct answer: C
Abstraction in object-oriented programming is the principle of hiding complex implementation details while exposing only essential features to the user. This reduces complexity and allows focusing on what an object does rather than how it works.