+ 1

What is abstraction in C++ and how we use it?

I read about abstraction. ..classes and objects in this app but didn't even got a ides what abstraction is and how we use it in a real code?

25th Dec 2016, 10:36 PM
Shobhit Singh
Shobhit Singh - avatar
2 Respostas
+ 1
it simply means that the memebers of class(data+functions) are hidden behind the object and are accessible only through it.. this is abstraction and if your are creating any classin your program..you are actually using it 🙇
26th Dec 2016, 10:50 AM
Ayush Walekar
Ayush Walekar - avatar
+ 1
In object oriented programming, abstraction is one of two central principles (along with encapsulation and inheritance. Through the process of abstraction, a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.
26th Dec 2016, 8:43 PM
Owais Khan Ghoury
Owais Khan Ghoury - avatar