Question: Two classes combine private data members and provide public member functions to access and manipulate those data members. Where is abstraction used?

  1. Abstraction is using a private access specifier for the data members.
  2. Abstraction is using public member functions to access and manipulate the data members.
  3. Abstraction is using the class concept with both data members and member functions.
  4. There is insufficient information to decide where abstraction is being used.

Answer: The correct answer of the above question is Option B:Abstraction is using public member functions to access and manipulate the data members.