Encapsulation in Java Tutorial #83

  Рет қаралды 250,475

Alex Lee

Alex Lee

4 жыл бұрын

$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
Encapsulation in Java is accessing private variables using methods. These are also known as setters and getters!
I hope you enjoyed this video on how to use encapsulation in java :) -
Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
Free Tips: bit.ly/3U6HXcb
Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
~
Alex Lee

Пікірлер: 293
@alexlorenlee
@alexlorenlee 7 ай бұрын
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@latedeveloper7836
@latedeveloper7836 3 жыл бұрын
Yet another excellent explanation. Timestamps below for anyone who needs them: 1:00 Definition of encapsulation 3:03 How to use encapsulation with getters and setters 3:17 What static means 5:19 The point of encapsulation - extracting variables from the user 9:22 Summary of what encapsulation is
@alexanderderictapalla58
@alexanderderictapalla58 4 жыл бұрын
You're a magician. You made every topics in Java understandable. Like wow. Just wow. Thank you very much!
@comcfi
@comcfi 3 жыл бұрын
For sure
@java_tech_guru
@java_tech_guru Жыл бұрын
When we create a class with private members. What we are actually trying to do is create a user defined data structure. It helps us to store the data privately. It prevents direct access.
@mrblobby1841
@mrblobby1841 2 жыл бұрын
Useful to note: most setter methods would include validation logic and checks. For example, check that age is greater than X for a student.
@mrpickles1
@mrpickles1 3 жыл бұрын
I'll eat my shirt if there's anyone out there who can explain java better than alex My college lectures are incomprehensible and i fall asleep 9/10 times.
@adamdreier
@adamdreier 3 жыл бұрын
That’s why I didn’t go to college hahaha, some dude on KZbin explaining it better than a University lmao 🤣
@Nanis-World
@Nanis-World 2 жыл бұрын
Alex, you've helped me get through all of the Java courses for my computer science degree. Thank you so much for the time you've put into making these videos and for helping me understand what my "teachers" are getting paid to do but failed miserably at!! 😊
@luiso3482
@luiso3482 4 жыл бұрын
Alex, you rock! You have the gift of teaching. Keep it up and thank you for spreading your knowledge.
@acelyaerdogan2222
@acelyaerdogan2222 4 жыл бұрын
Wow you make it seem so simple and understandable - super grateful to have found you; your videos would literally be how I will pass my end of year Java exam. Thank you! Looking out for your videos - keep striving!
@mariyaqureshi6800
@mariyaqureshi6800 4 жыл бұрын
I wish I found this channel when I was in my java class. You explain it so clearly!
@ndyer6005
@ndyer6005 3 жыл бұрын
You explained so clearly and precisely what my instructor took 2 hours explaining. I also enjoying copy-coding with you and then modifying my methods and variables for practice.
@tanjimashraf803
@tanjimashraf803 3 жыл бұрын
You make the complicated topics so easy to understand. Thank you so much.
@rakijacardaklija1750
@rakijacardaklija1750 3 жыл бұрын
The best short definition of encapsulation and fantastic explanation. Great video Alex.
@koushikpaul5957
@koushikpaul5957 3 жыл бұрын
I had a lot of difficulty with this at first, you made this a lot simpler than I thought it was. Thanks!
@amasaadi382
@amasaadi382 6 ай бұрын
you're a life saver man, wish you all the best😊😊
@TomJMumford
@TomJMumford 4 жыл бұрын
Hey Alex, Thanks so much for your videos. They're really helpful!
@joethompson8147
@joethompson8147 3 жыл бұрын
In IntelliJ you can right click in the Student.java class, choose "Generate", choose "getter" or "Setter" and IJ will write the methods for you.
@claudiavilatoro7109
@claudiavilatoro7109 3 жыл бұрын
you can do that in Eclipse too!
@Nas_Vinspired
@Nas_Vinspired 4 жыл бұрын
Thank you for the very helpful and easy to understand video content, man!
@beratkurt8084
@beratkurt8084 2 жыл бұрын
Very helpful for my final exams, apprecitaed sir.
@AoDShotZz
@AoDShotZz 2 жыл бұрын
You’re such a huge motivator! You make things possible to understand. Thank you
@mariaolsson1458
@mariaolsson1458 3 жыл бұрын
This really made a difference to me. Now I know what I did have so much trouble to understand about Java, it was Encapsulation. And now Alex explained how it works. Thank you!
@delzyfire7209
@delzyfire7209 4 жыл бұрын
please keep do what you are doing.I'm learning soo much thanks to you
@koenampati4054
@koenampati4054 2 ай бұрын
precise and easy way to explain it, ty💯
@troubledtom5250
@troubledtom5250 2 жыл бұрын
thanks i was trying to understand from that one programming book my teacher recommended to me but couldn't understand much except for the different classes bit ,so really glad i clicked on your video thanks alot man your a life saver.
@megabubbles9478
@megabubbles9478 2 жыл бұрын
You teach in a very calm and peaceful manner it’s kinda relaxing to watch you teach
@novalandinc.1345
@novalandinc.1345 3 жыл бұрын
Thank you Alex. You Made learning Encapsulation easier
@asimenibhavya6423
@asimenibhavya6423 3 жыл бұрын
You just made my life very easy in learning and understanding java concepts! THANK YOU! (Y)
@williamparker382
@williamparker382 4 жыл бұрын
This is awesome and so simply explained!
@mormsophen3238
@mormsophen3238 3 жыл бұрын
Yeah. It is too simple or maybe i already familiar with set and get
@heinrichwettin
@heinrichwettin 4 жыл бұрын
great work on all of your explanations !
@batoolali3529
@batoolali3529 Жыл бұрын
i am so thankful that your channel exist thank you for sharing your time and effort love the way you present the ideas
@Glennyates1025
@Glennyates1025 Жыл бұрын
You have a gift. Very clear and enjoyable. Well done!
@moniashelli9502
@moniashelli9502 4 жыл бұрын
thank you for explaining this, i actually thought it was complicated
@mikebrown5142
@mikebrown5142 10 ай бұрын
Awesome vid, your explanations are spot on. God bless!
@anvarbekziyodov
@anvarbekziyodov 3 жыл бұрын
bunch of thanks Alex, you made my day
@supernovic99
@supernovic99 Жыл бұрын
I'm currently preparing for the AP CSA on my own and your videos are literally the reason I'm confident for the exam. Thanks a lot!!!
@digby2263
@digby2263 2 жыл бұрын
Thankyou so much I was falling behind on our lessons this past few weeks and having a hard time on understanding how to use encapsulation, since I was ill of covid❤️
@omar.5076
@omar.5076 Жыл бұрын
Arigato. You've done the work so easily that it had made difficult for others to do.
@rittenbrake1613
@rittenbrake1613 4 жыл бұрын
very clear Thanks Alex
@anthonyakamook
@anthonyakamook 2 жыл бұрын
Thank you, this made perfect sense for me!
@joethompson8147
@joethompson8147 3 жыл бұрын
5:30 "The point of encapsulation is to abstract the variables from the user to make it easier to use the object."
@mp7596
@mp7596 Жыл бұрын
Alex, this was a great explanation. I am studying for an assessment for an entry-level job, so thank you
@danujagreru
@danujagreru 4 жыл бұрын
keep going, dude. it's very simple to understand
@johnrodriguez6164
@johnrodriguez6164 4 жыл бұрын
Thank you, AWESOME Video! Very Helpful
@Pandaputih2000
@Pandaputih2000 Жыл бұрын
I'm glad found this video. Learnt alot.. Thx
@benanikin4388
@benanikin4388 3 жыл бұрын
Bro you're a life saver! 10 mins of your content worth more than 2 hours with my professor
@starmehari2071
@starmehari2071 3 жыл бұрын
very true
@matthewmarchman8885
@matthewmarchman8885 Жыл бұрын
Love how you explain these concepts 💯
@sunkistzerosugar
@sunkistzerosugar 3 жыл бұрын
Currently in 2150 programming and my professors have been pretty iffy at explaining the terminology and what is actually going on but damn man you make this as clear as day.
@darrenjosiah9246
@darrenjosiah9246 2 жыл бұрын
3 weeks ago OOP was a foreign concept and I dreaded it. Now I'm mastering it and ready for an interview!
@naweedmohammadi7909
@naweedmohammadi7909 2 жыл бұрын
Your explanation was amazing Alex, the most understandable explanation ever keep it app bro
@brandonbelcher1002
@brandonbelcher1002 2 жыл бұрын
Very concise and useful. Thanks so much!
@albarsalan4173
@albarsalan4173 3 жыл бұрын
Thank you man for your great efforts. I believe you are one of the best on KZbin keep up the good work.
@lahirudamianperera6255
@lahirudamianperera6255 4 жыл бұрын
Thanks man ♥️java is in ur blood...I thought of giving up java....but ur way of teaching changed mee...thanks dude
@pablofalco
@pablofalco 3 жыл бұрын
Finally I get this...Thank you!
@viniciusbrisotti9848
@viniciusbrisotti9848 3 жыл бұрын
Great explanation bro! You presented the concept in a very simple language
@harshasuresh4062
@harshasuresh4062 Жыл бұрын
When I say you are a lifesaver, I mean it!!! Thank you Alex ❤
@starmehari2071
@starmehari2071 3 жыл бұрын
Thanks a lot Alex it is really helpful.
@darkhead612
@darkhead612 2 жыл бұрын
Thx for that shortcut!!
@tjake7864
@tjake7864 3 жыл бұрын
Nice work Alex!
@arhamsfunnymemes8156
@arhamsfunnymemes8156 3 жыл бұрын
nicely explained.Thanks
@samael5653
@samael5653 2 жыл бұрын
thanks of what you are doing i will maybe have the 99% more chanche to pass my exam... thank you Alex ! you're amazing!!!
@shenfdo8779
@shenfdo8779 3 жыл бұрын
Nice explanation Alex, and Thanks 😊
@SSracer192
@SSracer192 3 жыл бұрын
Thanks Alex for creating these videos, keep it up!!
@user-tk6vy2ec8u
@user-tk6vy2ec8u 2 жыл бұрын
Really helped, thanks so much!
@mohammedsakib5
@mohammedsakib5 4 жыл бұрын
Hey man love your videos!!!
@mempi9514
@mempi9514 2 жыл бұрын
Hi, you are really good explaining java material. I am grateful to have found you
@mehdimah2760
@mehdimah2760 4 жыл бұрын
Thank you Alex.
@spicebowl6325
@spicebowl6325 4 жыл бұрын
Thank you so much. Keep going.... 🙏
@le_travie7724
@le_travie7724 3 жыл бұрын
Annnnd subbed! You're way better at explaining this than my profs. Cheers m8
@HareKrishna15
@HareKrishna15 3 жыл бұрын
Happy new year you teach very well by the way
@tonynork7931
@tonynork7931 2 жыл бұрын
Great and simple explaining👍
@hempoyofficial
@hempoyofficial 2 жыл бұрын
Great! I've learned a lot.
@bradtagegogona7076
@bradtagegogona7076 3 жыл бұрын
Loved the video
@Geminis3505
@Geminis3505 4 жыл бұрын
Thanks so much for this video!
@tlo0542
@tlo0542 3 жыл бұрын
excellent explanation. Helped me alot. thank you.
@bhanupriyatham668
@bhanupriyatham668 2 жыл бұрын
simply awesome man .......... love from india
@MrAc3528
@MrAc3528 4 жыл бұрын
Hey Alex could you possibly make a video on the merge sort algorithm? You’re the best java teacher on KZbin and if you explained it I know for sure I would comprehend it. Thanks man.
@Monster33336
@Monster33336 4 жыл бұрын
Java is so hard you might need an expert for specifics.
@scholli99
@scholli99 4 жыл бұрын
@@Monster33336 youre making fun about java? Dude did you ever developed software professionelly ? Java is pretty complex language.
@Monster33336
@Monster33336 4 жыл бұрын
@@scholli99 just that Java is a nightmare when working with real objects not just system.out.println
@shashankshetty5879
@shashankshetty5879 4 жыл бұрын
You both are making it hard for starters like me to learn the language . No problem if it is hard or complex I will learn 👀
@tanveerahmad8455
@tanveerahmad8455 2 жыл бұрын
after many lecture watched finally u satisfy me ->🥰Thanks Alex
@herbaltreatment396
@herbaltreatment396 2 жыл бұрын
Wooooooooo you are great Alex.
@amnatariq711
@amnatariq711 3 жыл бұрын
Thanks the video is very helpful
@bigunhettiarachchi853
@bigunhettiarachchi853 2 жыл бұрын
Man your videos are so great and to the point Plus, you’re excellent at explaining 😍🥰
@duongvuong8514
@duongvuong8514 Жыл бұрын
OMG, what you said, I deeply felt it. I went through a whole semester without knowing what OOP is, got 50% on final but still ended up with a B. I swear, in that online class I did everything I could, look for all explaination both from online and from her but I still didn't get anything. Now it just came to me after 5 mins watching you lol. Thank you, thank you, thankyou!
@ahmedelsleet8542
@ahmedelsleet8542 Жыл бұрын
carrying me in my java course! thank you
@benitaezeoke1568
@benitaezeoke1568 Жыл бұрын
THANK YOU SO VERY MUCH ! I'M GRATEFUL
@lihlemgugudo664
@lihlemgugudo664 2 жыл бұрын
thank you so much!!!!!! your videos are very helpful
@SureshramT
@SureshramT 3 жыл бұрын
You are awesome 👏🏻. Thank you 🙏🏻
@zed-shasw
@zed-shasw 3 жыл бұрын
You are a genius teacher.
@jacobfrank6838
@jacobfrank6838 3 жыл бұрын
Thank you so much for it.
@honeybeedays6392
@honeybeedays6392 Жыл бұрын
Thank you Alex ❤
@jimbosliceOG
@jimbosliceOG 2 жыл бұрын
You’re an excellent teacher
@rolfchristensen9026
@rolfchristensen9026 2 жыл бұрын
Great explanation. As always an excellent video :)
@daisymangue9130
@daisymangue9130 3 жыл бұрын
everything is easy with Alex....i have hope in java bcz of u
@raymakaveli
@raymakaveli 4 жыл бұрын
awesome video my friend ! you're a smart dude
@yazuka2023
@yazuka2023 2 жыл бұрын
thank you god bless u this is really helpful
@rachamallidorasrivignesh4499
@rachamallidorasrivignesh4499 2 жыл бұрын
tq lee its very nice explanation.
@MaurianeBanza
@MaurianeBanza Жыл бұрын
Thank so much my favorite teacher
@GodsonTheOracle
@GodsonTheOracle 2 жыл бұрын
Keep it coming bro
@wiktorsobczyk6547
@wiktorsobczyk6547 4 жыл бұрын
best teacher ever
@AlexOlivares471
@AlexOlivares471 4 жыл бұрын
Damn dude, great explanation. Now I might pass my Java exam tomorrow, thanks!
@cartoons__for__kids_Hindi
@cartoons__for__kids_Hindi 3 жыл бұрын
Did you passed ?
@basaraslan9700
@basaraslan9700 3 жыл бұрын
wish java was depended on only one video
@namratapai4650
@namratapai4650 3 жыл бұрын
Thanks a lot :) this is so goooddd :)
@igorpetkovic4979
@igorpetkovic4979 4 жыл бұрын
Excellent video
Getters and Setters Java Tutorial #84
14:12
Alex Lee
Рет қаралды 488 М.
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 534 М.
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 113 МЛН
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 53 МЛН
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 3,4 МЛН
ПООСТЕРЕГИСЬ🙊🙊🙊
00:39
Chapitosiki
Рет қаралды 60 МЛН
Exception Handling in Java Tutorial
13:20
Coding with John
Рет қаралды 358 М.
Python Classes in 1 Minute!
1:26
b001
Рет қаралды 156 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 476 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,6 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 113 МЛН