

This tutorial explain you the principle of Encapsulation in Object Oriented Programming.
What is Encapsulation in Java?
Encapsulation is a principle of wrapping data (variables) and code together as a single unit.
Like, share and subscribe our channel for more videos.
Watch more videos on our YouTube channel at
READ this as a book on Amazon by viewing at
Visit our website for more! www.guru99.com
Read our blogs in
FACEBOOK! Would you prefer to watch more about us? Like our page for more
TWITTER! Tweet for us on Twitter with #guru99 and follow us on
LinkedIn! Follow us here
THANKS! We appreciate you reading this and hope you have a wonderful day!
Sincerely,
Guru99
source
Check out our FREE Real Time JAVA Project: https://www.guru99.com/live-java-project.html
u teach in 1 minute more than my professor in 6 classes congrats!
the hacker could still deposit a positive amount into your account with the deposit method. That is not secure! Can encapsulation prevent that? This is not explained in the video.
This is what I wanted.. Thanks
perfect.
What a quick and clear explanation! Thanks!
but we can change the value of private variable with method set and get. How is it secure?
Fast and Easy thanks
Nice video!
too brief
nice.. thanks
good explanation but not sufficient. Why we use encapsulation…??? As in both the case we can change the value firstly directly and secondly by public methods. So why we use encapsulation…??? In both case values can be changed so why encapsulation..??
this is awesome explanation