Question: Two classes combine private data members and provide public member functions to access and manipulate those data members. Where is abstraction used?
- Abstraction is using a private access specifier for the data members.
- Abstraction is using public member functions to access and manipulate the data members.
- Abstraction is using the class concept with both data members and member functions.
- 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.