Which OOP feature hides internal details and exposes only necessary…

2025

Which OOP feature hides internal details and exposes only necessary functionality?

Answer: D. AbstractionAbstraction hides internal implementation details and exposes only the necessary functionality to the user. Encapsulation bundles data and methods together,…

  1. A.

    Inheritance

  2. B.

    Encapsulation

  3. C.

    Polymorphism

  4. D.

    Abstraction

Attempted by 193 students.

Show answer & explanation

Correct answer: D

Abstraction hides internal implementation details and exposes only the necessary functionality to the user. Encapsulation bundles data and methods together, but the feature described in the stem is abstraction.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…