What is encapsulation in object oriented programming ?

Published: 14 May 2023
on channel: The Digital Folks
56,539
2.2k

Encapsulation bundles data (attributes) and methods together inside the wrapper called class.
Similar to capsules where different kind of medicines are are kept together inside the top cover, here data and methods are kept inside top cover called called "class".
To consume medicines inside capsule, first we need to uncover top layer. Similarly here, to access data and methods of class we need to uncover class by creating object for this.


On this page of the site you can watch the video online What is encapsulation in object oriented programming ? with a duration of hours minute second in good quality, which was uploaded by the user The Digital Folks 14 May 2023, share the link with friends and acquaintances, this video has already been watched 56,539 times on youtube and it was liked by 2.2 thousand viewers. Enjoy your viewing!