Multiple choice

In an office, a clerk builds a logic using C++ to calculate salary of the employees, which is hidden from the other employees. Which feature of the language is he using?

  1. Inheritance

  2. Encapsulation

  3. Abstraction

  4. Class

  5. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Abstraction refers to the act of hiding actual details from the user.