Тёмный

Getters and Setters Java Tutorial #84 

Alex Lee
Подписаться 405 тыс.
Просмотров 488 тыс.
50% 1

$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
Welcome to this getters and setters java tutorial! Getters and setters in java let you set/get private variables in a class with methods.
Getters and setters in java can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned by-doing!
I hope you enjoyed this getters and setters java tutorial! I like to have a nice mix of java tutorials and actual projects for you all :)
Was this able to help you learn getters and setters 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

Опубликовано:

 

3 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 436   
@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
@magicvibrations5180
@magicvibrations5180 4 года назад
My professor is useless. Thank you for this video, I needed it.
@4seth
@4seth 3 года назад
It's not always that they are useless, but the curriculum puts constraints on how effective of teachers they can be.
3 года назад
Exactly. My course is teaching me the same thing in 4 hours and I don't get it at the end of it plus feeling like a stupid. And he literally teach perfectly in 15 minutes. I don't know what else to say.
@thejamericanexperience2757
@thejamericanexperience2757 2 года назад
University is mainly for profit.
@magicvibrations5180
@magicvibrations5180 2 года назад
@@thejamericanexperience2757 Depends on the university
@mealsville
@mealsville 2 года назад
wouldn't agree more 😤
@Sir_Sammi
@Sir_Sammi 4 года назад
Just did my java final earlier this week, definitely would of failed without your videos, thanks for your good work!
@SubZeRoy9
@SubZeRoy9 3 года назад
Nice I did mine Monday. Alot better now that it's summer I feel like I'm going to learn alot more just doing my own stuff and making projects for fun. School has a way of sucking all the fun out of anything interesting. Lol
@eliasmore7500
@eliasmore7500 2 года назад
Would've
@hassansyed6087
@hassansyed6087 Год назад
What kind of example questions did you encounter? Could you show us 1 or 2? Just to see what they ask in a java exam =D
@derroz3157
@derroz3157 Год назад
its not work its a work of art you troll
@melodyosterholm3515
@melodyosterholm3515 4 года назад
This man has just saved my schooling career!!
@soar01
@soar01 4 года назад
Alex, please continue doing these tutorials. It helps me, and I'm sure a lot of others who want to extend their knowledge of Java.
@minhhuynh2646
@minhhuynh2646 4 года назад
Thank you! I have been writing get, set for a month without knowing why and when to use lol. Thanks a lot
@jj-fe6hz
@jj-fe6hz 2 года назад
bruh, this video explained "this' better than any of the other 10-20min videos out there specifically trying to explain "this". THANK YOU
@ShadyChild12
@ShadyChild12 3 года назад
Getters/setters also allow you to perform actions on the input before setting/getting the variable, for example, you could change the setName to this.name = name.toUpperCase(); This will set the variable to all caps. Getters/setters are very powerful when used correctly!
@matheusvarani303
@matheusvarani303 2 месяца назад
cool, didnt know we could use .toUpperCase() with set, thankss
@teachernewteacher1944
@teachernewteacher1944 4 года назад
Alex. You are so humble person. Great and easy explanations of all topics. Please give more exsamples for oop concepts, array, collections. (You may give exsamples from real life). I recommend you to my friends they are very glad to watch you. Respect. You do such a great job.
@karaunderwood5821
@karaunderwood5821 3 года назад
Alex, your videos are incredibly helpful. You have a real knack for explaining confusing concepts in an extremely understandable and simple way. Thank you!
@Cablur
@Cablur Год назад
You are like a magician that casts a spell, and all of a sudden the fog is going away, making room for the sun to shine. My mind felt like clearing up while I was watching this awesome video of yours. There are many Java-related tutorial videos out there, but none of them have this talent to explain in such a clear and comprehensible way. Bonus points for your charismatic and charming charisma 😊😊
@kbt4115
@kbt4115 3 года назад
@Alex Lee All schools should have to pay a small dividend to you for students that passed their classes, but only did so because they watched your videos. You are a Java programming wizard in my book my man! Thanks for also stepping through how the compiler runs through the code. That really helped hit it home and tied it all together.
@Imluisx
@Imluisx 4 года назад
You make java extremely simple without over complicating it! Appreciate the videos man!
@Jerry-dq1zz
@Jerry-dq1zz 2 года назад
I'm currently taking this course and to have further knowledge, I watch your free videos. Thank you and please do create more!
@klarakasprzyk6856
@klarakasprzyk6856 4 года назад
You are awesome! i am studying CL and Java is my core subject atm and you really do make studying for my assignments easier! Thanks!
@jackiegura8161
@jackiegura8161 2 года назад
I havent seen any other tutorials that explain step by step of what you are doing and why. Thank you!! Youre the besttt
@dominiquegruter4115
@dominiquegruter4115 3 года назад
Alex!!! Thanks so much for all your videos! I've just started my Java course and your video's really help me out a lot!
@matthewerwine8333
@matthewerwine8333 4 года назад
I learned all of this through CS Awesome, but your vids had definitely clarified the details of java code and I thank you so much for it
@thomasedwards7538
@thomasedwards7538 3 года назад
your videos are really helping me get through my university programming classes, thank you.
@khareek2453
@khareek2453 4 года назад
Perfect explanations, easy to follow along. I can watch several of your videos and not get bored for even a second ❤
@christianek.963
@christianek.963 2 года назад
I have recently started to learn Java and when I saw him get excited by generating the getters and setters my heart skipped a beatt cause I'm used to that, but it's so cute when you see people get excited about things you already know or have. It makes me think of elderly who are surprised by all the new technologies
@davidm3614
@davidm3614 2 года назад
He already knew about it lol. He was just excited to tell us about it because its a great shortcut for beginners, not because he just learned it.
@katelynbradley9436
@katelynbradley9436 Год назад
One of my favorite videos you've ever done. Thank you, Alex!!
@killerdwight8436
@killerdwight8436 4 года назад
Thank you very much. I was thinking it's gonna be very hard, but you're teaching very easy.
@rittenbrake1613
@rittenbrake1613 4 года назад
omg 13:01 the short cut is very useful ! Thank you Alex !!! Right click -->Source-->Generate Getters and Setters
@JTBanks
@JTBanks 4 года назад
Thanks once again Alex, appreciate all you do for us here on RU-vid. Very helpful! :)
@WisomofHal
@WisomofHal 4 года назад
When my professor introduced our getters/setters lecture, I thought this was about to be a deep lecture in OOP theory. Come to learn, it was all about creating instance methods to return the state of an object or implement some action on it's state within a client program. I wanted to leave after 5 minutes. I'll say though, I'm glad you've gone over this and I think your video is about the right amount of time for any student to understand these fundamental concepts.
@beyond_akshii
@beyond_akshii 2 года назад
i was so confused about the 'this' parameter but now i know ..........thank you alex for the precise info...love love
@kakairecharles3474
@kakairecharles3474 Год назад
million thanks, Alex. Your tuts have simplified my study life in Java.
@AzgarthX
@AzgarthX 2 года назад
not that I didn't understand what setters and getters are for but I'm glad your youtube channel exists cause my java II professor barely teaches like this at all. Just gives us reading assignments and you basically gotta teach yourself the material
@minim4nches605
@minim4nches605 8 месяцев назад
I have a test next week and this video really helped me ty!
@freemanmusa1756
@freemanmusa1756 2 года назад
Hello Alex. My name is Freeman, from Nigeria. Just to let you know that your videos made great impact to my learning java. Thank you so much.
@flormercado3587
@flormercado3587 2 года назад
Thank you so much for your tutorials. You explain the concepts really well. Excellent work!
@brotpapa2250
@brotpapa2250 2 года назад
Man, now everything makes sense...thank you so much for making these videos :)
@salinas718
@salinas718 2 года назад
Thanks a lot man! You're the best. I finally got this, been struggling with it for quite a while.
@princebismark3342
@princebismark3342 2 года назад
Thanks for really sharing , good work with us, am really appreciating the good effort you are putting in. Honestly I have understood the topic well. Thank you very much Lee
@b.m.1022
@b.m.1022 2 года назад
Holy crap I'm glad I stuck around for the bonus tip! thanks for the video Alex
@koushikghosh7048
@koushikghosh7048 2 года назад
That trick using Eclipse to generate the getters and setters was really neat!! Thank you!
@rezitec
@rezitec 3 года назад
Dude Thank you so muchhhh for create these videos 🥺❤️❤️ They don't teach us anything at uni . Your videos helped me a lot .Thank you wish you the bests 🙏🏻
@aa_2054
@aa_2054 3 года назад
I've watched hours of tutorials on RU-vid but this one just clicked with me! Great job, good teacher 👍
@SurajKumar-dz3zo
@SurajKumar-dz3zo 4 года назад
Thanks a lot ! I actually tried finding a video explaining this keyword and getter and setter for over 4 hours, and I found this now. You actually make concepts a lot easier to understand. And thanks again, I needed this for an assignment.
@kennethcabarles4948
@kennethcabarles4948 2 года назад
Thanks for this! I've been able to complete my Performance Task. I appreciate you sir!
@abdallahalmanasrah6343
@abdallahalmanasrah6343 Год назад
I LOVE ALL YOUR VIDEOS! Thanks a lot
@NEnigma777
@NEnigma777 Месяц назад
You explained more in the first minute than my damn class and professor did this whole semester. Thank you!
@knr9686
@knr9686 Год назад
big like for the bonus tip. That saves sooooo much time. Thanks! 🙏🏽🙏🏽🙏🏽
@uwaishakim123
@uwaishakim123 4 года назад
My finals is in few hours and this definitely helped me understand on why, where and when to use getter and setter. Thank you so much Sir 😭🙏🏻✨
@bertjan1297
@bertjan1297 4 года назад
6:22 It doesn't confuse the computer (or rather the compiler). It simply sets the local variable 'name' to itself. By doing this it doesn't achieve the goal you want because the name of the scope variable and object variable are the same and the latest defined variable in the scope will always be used. On another note: Getters and setters are a lot of boilerplate code. Even for beginners I would suggest using something the like Lombok extension / plugin for Java. Creating something like the Account class in this video can then be done with: @Data public class Account { private String name; private int age; } That piece of code will have getters and setters and even equalization that is desired. At compile time it will be converted to normal Java code. Or if that is too much you can also use public class Account { @Getter @Setter private String name; @Getter @Setter private int age; }
@ZaRahula
@ZaRahula 3 года назад
I'm starting java this semester and I'm trying to wrap my head around OOP. Thank you sooo much So helpful!
@luisangelvalenciaarcega1663
@luisangelvalenciaarcega1663 2 года назад
Bro ya really inspires me to code all days when im fell discouraged , greetings from Mexico !
@DivingChipmunk
@DivingChipmunk 4 года назад
Just learned this in my AP comp sci course, nice vid
@alexlorenlee
@alexlorenlee 4 года назад
Nice :)
@InternetExplauraa
@InternetExplauraa 4 года назад
Thank you so much for this video! I am trying to learn java in my freetime and for some reason, I couldn't quite understand what's it about with getters and setters. This video helped a lot!
@albertapremium3698
@albertapremium3698 2 года назад
Alex! thank you; i finally understand setters and getters after watching this :)
@feretiuti2550
@feretiuti2550 2 года назад
You are amazing. I thank God that you made this tutorial because not gonna lie, I need you in my life 💯
@TimmyGoesForTrip
@TimmyGoesForTrip 4 года назад
Couldn't understand the concept but gosh Thank You for the simple and clear explanation!!!
@dankBenk
@dankBenk 3 месяца назад
You explained in 5 minutes what my professor couldn’t explain in 2 weeks, well done!
@yanxu9167
@yanxu9167 2 года назад
Extremely helpful! Thank you, Alex!
@goldenraisins
@goldenraisins 3 года назад
I'm so grateful for all of Alex's YT videos haha
@milankbudha
@milankbudha 4 года назад
thank u alex lee..your teaching is simple and understanding
@blouberguy4647
@blouberguy4647 Год назад
amazing explaination and also very fast thank you for this!
@piumiwijenayake3953
@piumiwijenayake3953 4 года назад
Superb I couldn't understand this when my lecturer taught me but after seeing yours I can
@youareiamurim
@youareiamurim 4 года назад
Great video again!! 😊👍 But i wonder if you, in the future can make seperate class files for the methods etc...since that is actually how the program has to be stuctured. But by all means, love you videos!!❤
@marksummers463
@marksummers463 2 года назад
Thanks 4 making this really technical.I was so worried youd make this easy.
@9chickenwingz
@9chickenwingz 2 года назад
Alex, you’re the teacher we needed! 👏🏽
@youneschoukri1184
@youneschoukri1184 3 года назад
Great video! Thank you so much for this tutorial!
@diamond2869
@diamond2869 Год назад
Amazing work! Thank you!
@hellscream1265
@hellscream1265 3 года назад
Hey, just wanna say you're really awesome! Your tutorial really helps and its very easy to understand. My professor's teaching is nowhere near your teaching. I hope you continue to make these videos, thank you so much for these!
@zahoor.77
@zahoor.77 7 месяцев назад
Thank you. Your videos are beneficial! Grateful🙏
@markevans5648
@markevans5648 4 года назад
Great job Alex! Well done.
@umamaheshiyer5664
@umamaheshiyer5664 2 года назад
Alex I have watched many videos however you are the best !
@paulchristian1349
@paulchristian1349 2 года назад
thank you MR. lee you really help me a lot.
@switkaren
@switkaren Год назад
very well explained. excellent. thanks so much
@nguyenkarma564
@nguyenkarma564 2 года назад
Thank you so much Alex. The best wish for you bro
@jacobbj
@jacobbj 4 года назад
I'm grateful I found this channel. Thank you very much sir! I'll be more happy if you make a video for "Different Errors in Java programming and how to fix them" and "Shortcuts and the environment of Eclipse" (cause we can't edit in Photoshop without knowing it's tools right?) Thank you again sirr!
@kingjustice954
@kingjustice954 3 года назад
You don't know how much this has cleared for me
@eliaspfeffer
@eliaspfeffer 2 года назад
Helped a lot! Thanks!
@user-pn7di5lp9v
@user-pn7di5lp9v Год назад
Great! The author decided from the very beginning to teach programmers what everyone has been trying to unlearn for about 15 years now: write accessor methods.
@himanshunishad4080
@himanshunishad4080 2 года назад
Hey ! Alex, I am from India. This comment is to thanks you "This video help me to understand getter & setters easily" , also your bonus tip is just like you nailed it.
@maaan8494
@maaan8494 3 года назад
Top notch lesson Alex, thanks
@ReflexShow
@ReflexShow 3 года назад
Awesome tutorial, i love the way you teaching, following and looking forward to more java tutorial in future! ❤️
@hesham4744
@hesham4744 2 года назад
thank u i was a bit lazy to study but after i saw your vid
@viktoriaurban3178
@viktoriaurban3178 4 года назад
Alex you absolutely rock!
@WhoHasSoul
@WhoHasSoul 3 года назад
I appreciate your work! Thank you!
@skyeslattery8214
@skyeslattery8214 Год назад
Thank you, great explanation
@davidcabrera6555
@davidcabrera6555 4 года назад
Awesome explanation!!
@thewalkman4057
@thewalkman4057 3 года назад
I have never been to college so don't know how they teach java. But This guy did a great job for me !
@jesrealibabao6235
@jesrealibabao6235 3 года назад
No exaggeration, you really helped me a lot🤗
@chocovanilla9738
@chocovanilla9738 3 года назад
This video really helpful! Thanks a lot!
@afrajahan2302
@afrajahan2302 4 года назад
Very helpful and clear explanation
@asthetikleo
@asthetikleo Месяц назад
Alex is literally in a class of his own at teaching Java
@sadafharoon3495
@sadafharoon3495 3 года назад
you explained it in so simple and easy way. Perfect. Thank you
@rojanpaican5725
@rojanpaican5725 3 года назад
Your tutorials are easy to understand... thank you for this, this is a huge help especially to a student like me.
@krishnanshudey3831
@krishnanshudey3831 3 года назад
You are the master of java. I really love your explanation at the end. Love from INDIA
@artybell1990
@artybell1990 3 года назад
Now that I found the best explanation 👌 Thank you Alex so much 🙌🏼
@prajakta_shinde_
@prajakta_shinde_ 4 года назад
My job depends on my java understandings.. I'm lucky I have your videos now..! Thankyou ^_^
@rasendell4817
@rasendell4817 3 года назад
I love the trick , thank you
@rin3005
@rin3005 Год назад
Okay since today you're my favorite kind person on earth 💐
@minecompilation9373
@minecompilation9373 3 года назад
Without your video on how to learn java in 17 minutes I would never had picked up Java TY!
@sssss3156
@sssss3156 2 года назад
ur videos + codegym = junior thank u
@siphozimba1241
@siphozimba1241 4 года назад
You are such a champion thanks a lot man
@a_fan933
@a_fan933 3 года назад
Thank you sooo muuuch 😭 you will be seen on my references in my assignment!
@largibolala2691
@largibolala2691 2 года назад
i cant believe my course didn't have getters and setters explained and this is such a crucial topic!
Далее
Java Method Chaining Tutorial #85
8:43
Просмотров 41 тыс.
#BraveCleanandReverent Number 2
1:28
Просмотров 3
100% она сделает 🤫
01:00
Просмотров 72 тыс.
МАЛОЙ ШАНТАЖИСТ
00:34
Просмотров 165 тыс.
Why I Stopped Making Java Tutorials
2:15
Просмотров 113 тыс.
Abstract Class In Java Tutorial #79
8:55
Просмотров 533 тыс.
Why to use Getters and Setters in Java ? Hindi
14:13
Просмотров 85 тыс.
Never Write a Getter or Setter in Java Again
10:41
Просмотров 149 тыс.
JavaScript GETTERS & SETTERS are awesome!!! 📐
13:14