What is an abstraction in object-oriented programming?

2026

What is an abstraction in object-oriented programming?

Answer: C. Hiding the implementation and showing only the featuresAbstraction in object-oriented programming is the principle of hiding complex implementation details while exposing only essential features to the user. This…

  1. A.

    Hiding the implementation

  2. B.

    Hiding the important data

  3. C.

    Hiding the implementation and showing only the features

  4. D.

    None of the above

Attempted by 343 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.

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…