What is abstraction in C++ and why we use?

–1 vote
asked Oct 9, 2019 by Muhammad Khizar
Why do we use abstraction in C++ language?

1 Answer

0 votes
answered Oct 17, 2019 by Yoginath Kalshetty (140 points)
Abstraction is the method of hiding the unnecessary information and projecting required information. In other word providing the essential features and hiding internal details.

For example:1. If I want to open the folder, I should know that I have to click on it (essential feature) and not required to know what happens inside (internal details). This feature will help us to concentrate or focus on the particular task/work.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...