Getters & Setters | Java | Tutorial 31

  Рет қаралды 112,145

Giraffe Academy

Giraffe Academy

Күн бұрын

Пікірлер: 131
@tanvirhaider617
@tanvirhaider617 3 жыл бұрын
Hey Mike, you are the only one who explained so early in the video on "why" actually we should be using getters and setters and that is very important as when we can identify the problem and solution for it then the learning becomes easy. thank you.
@akagrawal8085
@akagrawal8085 3 жыл бұрын
If Mike was my professor in College , then today i would be far ahead in programming 😍😃✌️
@tanvirhaider617
@tanvirhaider617 3 жыл бұрын
exactly
@juanpablocruzrodriguez7346
@juanpablocruzrodriguez7346 5 жыл бұрын
omg bro, you just saved my object-oriented university course! THANK YOU SO MUCH!!!
@JR-ne5vn
@JR-ne5vn 4 жыл бұрын
Seriously man... i wish I would’ve found you earlier. Now I’m kinda failing my class, but this helped me a lot 🍀
@jennheath108
@jennheath108 2 жыл бұрын
I've been so stuck in my JAVA class and have watched multiple videos trying to figure this out. After watching your videos it finally clicks. You explain things so simply, thank you so much!!!
@angelicaspencer687
@angelicaspencer687 5 жыл бұрын
Your videos are amazing I finally understand classes. Thank you
@Believer1995ofGod
@Believer1995ofGod 3 жыл бұрын
finally found the answers i was looking for. in class i learned to make setters and getters and constructor but nobody explained the reasoning behind it. so thanks a lot man!
@lilv728
@lilv728 Жыл бұрын
Thank you so much! I have been having a hard time understanding setters and getters the way my professor explained it. But you sitting down and walking us through it like this was so helpful. I totally understand how to them now. You rock!
@crystinecullen3031
@crystinecullen3031 4 жыл бұрын
You are the best on freecodecamp bro.
@Boameooo1000
@Boameooo1000 4 жыл бұрын
Thank you very much. You are the only one who has explained Getters and Setters in full for me to understand. Cheers
@AdrianTregoning
@AdrianTregoning 2 жыл бұрын
Why did it take me this long to find your videos? Some of the best explanations I've seen on KZbin. Thank you!
@sleepyninj66
@sleepyninj66 Жыл бұрын
it took 5 hours for my prof. to explain this but my guy explained it in 17 minutes, thanks for this .
@adipurnomo5683
@adipurnomo5683 2 жыл бұрын
I have been confuse before about Getter setter implementation in real case. I got it. Great job bro
@redcrafterlppa303
@redcrafterlppa303 3 жыл бұрын
7:50 for people who wonder how to eliminate this unsightly long line of repetitive code, you can use a switch without brakes between all the "true" cases and a break after the last one. The default case is your else block.
@PsyntfcProductions
@PsyntfcProductions 4 жыл бұрын
This needs more views. Not only is it explained well, but the example you used for movies is really effective. Congrats!
@cbt121314
@cbt121314 4 жыл бұрын
This guy doesn't waste any time! One of the very very few I play at 1x speed.
@anushivanpratheepan
@anushivanpratheepan 4 жыл бұрын
This series is very fun to watch and learn about the new stuff every episode. Thank you soo much for making it.
@mikeynavarro3195
@mikeynavarro3195 2 жыл бұрын
You explain better than my coding bootcamp's learning platform and i love you for that
@ghita2003able
@ghita2003able 2 жыл бұрын
THE BEST EXPLANATIONS PERIOD.
@ranjanadissanayaka5390
@ranjanadissanayaka5390 7 ай бұрын
this video is perfect. You explained everything so clearly. Thanks Mike.
@spag5296
@spag5296 6 жыл бұрын
Wow, you are amazing at teaching! Thank you so much!
@student4373
@student4373 3 жыл бұрын
@7:10 wow, so simple. I would've gone with a boolean value in a while statement, but this makes it so much simpler!
@mohammedabahussain4562
@mohammedabahussain4562 5 жыл бұрын
MAN, I am very thankful for the effort you're putting !
@mohamedhassan7849
@mohamedhassan7849 4 жыл бұрын
Thanks Mr. Mike you made me understand the whole concept.
@gehanadel3616
@gehanadel3616 Жыл бұрын
awesome i search about something help me in my JS and to be honest this amazing because you talk about the concept not the language , thanks a lot
@munyafiction
@munyafiction 7 жыл бұрын
Great videos! This was a perfect chance to introduce the switch statement... but yer, love your teaching style!
@jodymills5229
@jodymills5229 Жыл бұрын
Wow... you really clarified this for me. VERY GREATFUL!
@derrik-bosse
@derrik-bosse 4 жыл бұрын
Best getter setter video so far
@abhishekhm1264
@abhishekhm1264 2 жыл бұрын
Sir I am a big fan of you. Just hats off...
@endihyseni3858
@endihyseni3858 4 жыл бұрын
Ur amazing at teaching man, keep up the good work!!!
@jonm840
@jonm840 3 жыл бұрын
Man your videos really helped me in my CSC course. Thank you so much
@MsSira12
@MsSira12 4 жыл бұрын
This is by far the best video that explains the concept of setters & getters, you answered all my questions, PERFECT VIDEO. Thank you very much.
@IslamgulMashall
@IslamgulMashall Жыл бұрын
You are an amazing teacher!
@gurmindersingh4414
@gurmindersingh4414 5 жыл бұрын
Awesome bro. I fully understand this topic from your video..... Thanks
@Bananainacar
@Bananainacar 3 жыл бұрын
Such a solid video, thank you for explaining this so well and giving such clear examples.
@robirandres
@robirandres 5 жыл бұрын
Really great at explaining the nuances of the concept. Keep up the good work. :)
@salimz.8587
@salimz.8587 4 жыл бұрын
You deserve millions of subscribers
@dawitdereje2690
@dawitdereje2690 6 жыл бұрын
The best explanation ever!
@thedramaking1138
@thedramaking1138 3 жыл бұрын
I am not able to understand constructors. But you explained getters and setters very well. If you could explain constructors separately that would be awesome.
@piriyakumar0602
@piriyakumar0602 Жыл бұрын
We're using constructors to create different objects with different attributes. Think about a condition, where we don't use constructors. We can create only one object and with specific attributes. Only 'Movie1' can be there. if we want to add another object like Movie2 with different attributes than Movie1, then we have to declare Constructors. KEY WORDS: "different objects with different attributes".
@omaralomari3774
@omaralomari3774 5 жыл бұрын
that is way better than any fucking tutorial, or tutor in my uni thanks mate I really appreciate it.
@rian1196
@rian1196 4 жыл бұрын
This is very helpful. He explained so well.
@night_traffic
@night_traffic 2 жыл бұрын
You saved my life. Thanks a looot.
@juanestebanparraparra6302
@juanestebanparraparra6302 2 жыл бұрын
Clearly explained. Thanks for the video
@KumoGhum
@KumoGhum Жыл бұрын
This is literally perfect
@SandeepSingh-wt9ih
@SandeepSingh-wt9ih 5 жыл бұрын
Wow autograph plz u r the real superstar 😍😍😍
@williamhunt8313
@williamhunt8313 5 жыл бұрын
Really well done Mike. Thanks
@hjz2000
@hjz2000 2 ай бұрын
You're a G. Thank you bro.
@7barsofchocolate
@7barsofchocolate 3 жыл бұрын
can someone pls explain why do we (at 15:20) just return rating in the getRating function, but for the other attributes we return this.title & not just title??
@simranjitsingh3474
@simranjitsingh3474 3 жыл бұрын
Good explanation. I like it.
@Ianassa91
@Ianassa91 3 жыл бұрын
Thank you! Superb tutorial!
@cristianalburquerque3712
@cristianalburquerque3712 9 ай бұрын
Question: I see that we could use setTitle(title), without using this keyword, and it works the same. Does this keyword have any purpose here in constructor. Reference video time slot: 17:04
@hemples
@hemples 7 ай бұрын
Awesome vid. Thanks!!!
@simm5622
@simm5622 3 жыл бұрын
Nicely explained 👍
@Lucuskane
@Lucuskane 3 жыл бұрын
Thanks for the videos! Love 💜
@markevans5648
@markevans5648 4 жыл бұрын
Great video thanks Mike
@salimz.8587
@salimz.8587 4 жыл бұрын
You are the best!
@eljanpablo4712
@eljanpablo4712 7 жыл бұрын
Good tutorial, this trick is encapsulation and helpful to security us program
@issamelhoss3067
@issamelhoss3067 3 жыл бұрын
you came in soo clutch thanks.
@mourningdovetunes
@mourningdovetunes 3 жыл бұрын
So well explained thank you!
@olgadurham9843
@olgadurham9843 5 жыл бұрын
Thank you so much, this is a great video!
@hind9719
@hind9719 4 жыл бұрын
very well explained thank you so much
@josselynmunoz8743
@josselynmunoz8743 5 жыл бұрын
Hi Mike. Question: What was the purpose of creating setters for the title and director attributes if there are no restrictions to set?
@mohamedhussein6954
@mohamedhussein6954 4 жыл бұрын
From my understanding, it's always good practice to use setters and getters regardless of whether there are restrictions or not.
@srschool4298
@srschool4298 2 жыл бұрын
Its just an example SON!
@jishnuvedhikz4404
@jishnuvedhikz4404 4 жыл бұрын
good tutorial.. very help full.. keep going
@senthilmuruganr234
@senthilmuruganr234 3 жыл бұрын
Excellent
@yowzer00
@yowzer00 3 жыл бұрын
"And this is pretty cool, everything is going well."
@wendie122
@wendie122 3 жыл бұрын
Thank you so much for this.
@Vidayat1
@Vidayat1 Жыл бұрын
good job,thank you!
@kimberlymahilum7800
@kimberlymahilum7800 Жыл бұрын
hello Mike, thank you for this tutorial. i just wanna ask, can I use getters without setters? and the other way around?
@Karslo
@Karslo Жыл бұрын
Is there any difference between using "return title;" and "return this.title;" when using getters? Thank you!
@pranaychoubey829
@pranaychoubey829 4 жыл бұрын
if i created a array of strings and array of integers in a different class as private and provide the getter and setter for it. In the main class how do i set the string and integer according to the counter variable in for loop???
@TheStewie96
@TheStewie96 4 жыл бұрын
Thank you!
@Dev_Eli
@Dev_Eli 4 жыл бұрын
can you give an example of this with the user just inputting the title and printing out all of the info like the director, rating, cast, and whatnot?
@myworldisenogh
@myworldisenogh 4 жыл бұрын
Great, Thank you
@devidas90
@devidas90 Жыл бұрын
Good one
@nicoaristote9681
@nicoaristote9681 4 жыл бұрын
thanks , this was really helpfhul
@Danilo-op1yp
@Danilo-op1yp Жыл бұрын
Yo how did you make your eclipse look like that ?
@pranav288
@pranav288 3 жыл бұрын
Couldn't we use just an if statement to check if the ratings are not equal to one of those it can print "NR" or something
@gamesmaname5467
@gamesmaname5467 4 жыл бұрын
your great at teacher man
@ramkumarsenthilnathan8662
@ramkumarsenthilnathan8662 4 жыл бұрын
What if I want the user to input multiple movie names ,in this videos u have showed 3 what if he wants to input 10 names or 20 ..so we use a string array how exactly we should be doing it ?
@nikhithanikki8413
@nikhithanikki8413 4 жыл бұрын
I have created a pojo class with setters and getters. In class A I have set the values and in class B I wanted to get the values . Kindly help me how to create object and get the values
@sandiegodronephotography9454
@sandiegodronephotography9454 3 жыл бұрын
When you change the constructor to "this.setMake(make);" My program throws an overridable method call in constructor. It wants to make my setter setMake into Private. (making it unusable in main). Should we leave our constructors as this.make = make; ?
@theencryptedpartition4633
@theencryptedpartition4633 Жыл бұрын
Instead of using set methods in the constructor, can't you just assign like random default values to them? like 000, xxx or even negative values
@FamiliarGecko
@FamiliarGecko 5 жыл бұрын
I'm sorry, sir. This is a "dog" rated movie, your 8 year old son cannot watch it. But you can bring in your dog, for a family discount.
@llavesantioquia
@llavesantioquia 5 жыл бұрын
looooooooooooool
@mukulsharma5738
@mukulsharma5738 4 жыл бұрын
XD
@WasiAbdullah-h8n
@WasiAbdullah-h8n 3 ай бұрын
Do a video on tracing in java
@marksummers463
@marksummers463 2 жыл бұрын
Suggestion: Show the exact paths values travel so we know exactly whats going on.
@MoutazGamer
@MoutazGamer 5 жыл бұрын
thank you man ♥
@pranaligaikwad4781
@pranaligaikwad4781 5 жыл бұрын
I want data structures full course from you sir!!!!
@seanbrendangarrette7644
@seanbrendangarrette7644 3 жыл бұрын
Good job, should have told us that the name of the rating should be Rating, capital R
@ELgeneral-pl9yg
@ELgeneral-pl9yg 4 жыл бұрын
Damn bruh you explain this shit really well
@ahmaddawood9691
@ahmaddawood9691 5 жыл бұрын
EXCELLENT
@francistettey9114
@francistettey9114 2 жыл бұрын
Please why the setters uses void method.
@carolynw.2381
@carolynw.2381 5 жыл бұрын
really helpful!!!
@ihssancanmturk3842
@ihssancanmturk3842 4 жыл бұрын
Me think: wonderful this ;)
@joeblue9129
@joeblue9129 3 жыл бұрын
thank you all love
@redcrafterlppa303
@redcrafterlppa303 3 жыл бұрын
The movie class would be a prime example to use records now in java 17🤔
@husseinnajafli2305
@husseinnajafli2305 4 жыл бұрын
What is the name of this theme?
@Antigashlighting
@Antigashlighting Жыл бұрын
Public Void setTitle(String title){ this.title=title; } Public void setDirector(String director) { this.director=director; } Public String getTitle ( ){ return this.title ;
@brascoarts2634
@brascoarts2634 5 жыл бұрын
Thanks alot
@monickverma2944
@monickverma2944 5 жыл бұрын
What environment do you use?
@fermecontadoorkut
@fermecontadoorkut 5 жыл бұрын
Seems like eclipse for mac.
@SandeepSingh-wt9ih
@SandeepSingh-wt9ih 5 жыл бұрын
Grt explain
Static Class Attributes | Java | Tutorial 32
11:03
Giraffe Academy
Рет қаралды 43 М.
Getters & Setters | C# | Tutorial 28
12:09
Giraffe Academy
Рет қаралды 196 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 20 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 12 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 53 МЛН
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 562 М.
Getters and Setters (Java OOP 2)
6:56
Caleb Curry
Рет қаралды 48 М.
Getters and Setters Java Tutorial #84
14:12
Alex Lee
Рет қаралды 510 М.
Try / Catch & Exceptions | Java | Tutorial 25
15:56
Giraffe Academy
Рет қаралды 55 М.
Programming Languages DON'T MATTER | Let's Rant!
10:05
Giraffe Academy
Рет қаралды 44 М.
Classes & Objects | Java | Tutorial 26
13:52
Giraffe Academy
Рет қаралды 147 М.
Java encapsulation 💊
8:27
Bro Code
Рет қаралды 125 М.
Is JavaScript BAD for Beginners? | Let's Rant
14:53
Giraffe Academy
Рет қаралды 41 М.
Interface Inheritance (implements) | Java | Tutorial 35
12:32
Giraffe Academy
Рет қаралды 54 М.
Inheritance (extends) | Java | Tutorial 34
12:41
Giraffe Academy
Рет қаралды 62 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 20 МЛН