Java Encapsulation with Example – Java Programming Tutorial

///Java Encapsulation with Example – Java Programming Tutorial

Java Encapsulation with Example – Java Programming Tutorial

FavoriteLoadingAdd to favorites

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.

Java468x60

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

By |2019-12-06T00:20:51+00:00December 6th, 2019|Java Video Tutorials|13 Comments

13 Comments

  1. Guru99 December 6, 2019 at 12:20 am - Reply

    Check out our FREE Real Time JAVA Project: https://www.guru99.com/live-java-project.html

  2. Tyridol December 6, 2019 at 12:20 am - Reply

    u teach in 1 minute more than my professor in 6 classes congrats!

  3. falterfigure December 6, 2019 at 12:20 am - Reply

    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.

  4. Gaurav Popli December 6, 2019 at 12:20 am - Reply

    This is what I wanted.. Thanks

  5. adisu alemayehu December 6, 2019 at 12:20 am - Reply

    perfect.

  6. emerlander December 6, 2019 at 12:20 am - Reply

    What a quick and clear explanation! Thanks!

  7. PrettyStefani December 6, 2019 at 12:20 am - Reply

    but we can change the value of private variable with method set and get. How is it secure?

  8. Ruben Pavão December 6, 2019 at 12:20 am - Reply

    Fast and Easy thanks

  9. darkaxe201 December 6, 2019 at 12:20 am - Reply

    Nice video!

  10. billyblackburn87 December 6, 2019 at 12:20 am - Reply

    too brief

  11. Rag Peddabudi December 6, 2019 at 12:20 am - Reply

    nice.. thanks

  12. Dhirajkumar Jaiswal December 6, 2019 at 12:20 am - Reply

    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..??

  13. Naga December 6, 2019 at 12:20 am - Reply

    this is awesome explanation

Leave A Comment

*