What is encapsulation in object oriented programming ?

Veröffentlicht am: 14 Mai 2023
auf dem Kanal: 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.


Auf dieser Seite können Sie das Online-Video What is encapsulation in object oriented programming ? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer The Digital Folks 14 Mai 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 56,539 Mal angesehen und es wurde von 2.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!