What is encapsulation in object oriented programming ?

Опубликовано: 14 Май 2023
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн What is encapsulation in object oriented programming ? длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь The Digital Folks 14 Май 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 56,539 раз и оно понравилось 2.2 тысяч зрителям. Приятного просмотра!