What is abstraction? How is encapsulation related to it?

Question :

What is abstraction? How is encapsulation related to it?

Abstraction is a principle of Object Oriented Programming (OOP) that hide certain details and only show the essential features of the object.

Encapsulation is also frequently confused with abstraction, since the two concepts are closely related. Abstraction is a process of hiding the complexity and giving a simple interface. Encapsulation on the other hand is the mechanism by which the abstraction is implemented.


Similar Questions


CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz