Encapsulation in Java example|Encapsulation Concept|Benefits of Encapsulation|OOP concepts

preview_player
Показать описание
In this video you will learn about Encapsulation in Java using a demo project
Below is the GitHub link to download source:
Рекомендации по теме
Комментарии
Автор

Hii kk you given good explanation about Encapsulation but i have one dout is we are creating class with private varibles and setter and getter method then here we are breaking the encapsulation rules bcoz we are making private varibles and giving access to other classes to access private varibles using setter and getter then why we cannot make that varibles public so other classes can access it directly

dktailor
Автор

you have not explained Encapsulation better, any way the enduser can use set() method to change the data then where is security here

ashishagrawal
welcome to shbcf.ru