What is abstraction in C++ and how we use it? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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