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.
@akagrawal80853 жыл бұрын
If Mike was my professor in College , then today i would be far ahead in programming 😍😃✌️
@tanvirhaider6173 жыл бұрын
exactly
@juanpablocruzrodriguez73465 жыл бұрын
omg bro, you just saved my object-oriented university course! THANK YOU SO MUCH!!!
@JR-ne5vn4 жыл бұрын
Seriously man... i wish I would’ve found you earlier. Now I’m kinda failing my class, but this helped me a lot 🍀
@jennheath1082 жыл бұрын
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!!!
@angelicaspencer6875 жыл бұрын
Your videos are amazing I finally understand classes. Thank you
@Believer1995ofGod3 жыл бұрын
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 Жыл бұрын
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!
@crystinecullen30314 жыл бұрын
You are the best on freecodecamp bro.
@Boameooo10004 жыл бұрын
Thank you very much. You are the only one who has explained Getters and Setters in full for me to understand. Cheers
@AdrianTregoning2 жыл бұрын
Why did it take me this long to find your videos? Some of the best explanations I've seen on KZbin. Thank you!
@sleepyninj66 Жыл бұрын
it took 5 hours for my prof. to explain this but my guy explained it in 17 minutes, thanks for this .
@adipurnomo56832 жыл бұрын
I have been confuse before about Getter setter implementation in real case. I got it. Great job bro
@redcrafterlppa3033 жыл бұрын
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.
@PsyntfcProductions4 жыл бұрын
This needs more views. Not only is it explained well, but the example you used for movies is really effective. Congrats!
@cbt1213144 жыл бұрын
This guy doesn't waste any time! One of the very very few I play at 1x speed.
@anushivanpratheepan4 жыл бұрын
This series is very fun to watch and learn about the new stuff every episode. Thank you soo much for making it.
@mikeynavarro31952 жыл бұрын
You explain better than my coding bootcamp's learning platform and i love you for that
@ghita2003able2 жыл бұрын
THE BEST EXPLANATIONS PERIOD.
@ranjanadissanayaka53907 ай бұрын
this video is perfect. You explained everything so clearly. Thanks Mike.
@spag52966 жыл бұрын
Wow, you are amazing at teaching! Thank you so much!
@student43733 жыл бұрын
@7:10 wow, so simple. I would've gone with a boolean value in a while statement, but this makes it so much simpler!
@mohammedabahussain45625 жыл бұрын
MAN, I am very thankful for the effort you're putting !
@mohamedhassan78494 жыл бұрын
Thanks Mr. Mike you made me understand the whole concept.
@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
@munyafiction7 жыл бұрын
Great videos! This was a perfect chance to introduce the switch statement... but yer, love your teaching style!
@jodymills5229 Жыл бұрын
Wow... you really clarified this for me. VERY GREATFUL!
@derrik-bosse4 жыл бұрын
Best getter setter video so far
@abhishekhm12642 жыл бұрын
Sir I am a big fan of you. Just hats off...
@endihyseni38584 жыл бұрын
Ur amazing at teaching man, keep up the good work!!!
@jonm8403 жыл бұрын
Man your videos really helped me in my CSC course. Thank you so much
@MsSira124 жыл бұрын
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 Жыл бұрын
You are an amazing teacher!
@gurmindersingh44145 жыл бұрын
Awesome bro. I fully understand this topic from your video..... Thanks
@Bananainacar3 жыл бұрын
Such a solid video, thank you for explaining this so well and giving such clear examples.
@robirandres5 жыл бұрын
Really great at explaining the nuances of the concept. Keep up the good work. :)
@salimz.85874 жыл бұрын
You deserve millions of subscribers
@dawitdereje26906 жыл бұрын
The best explanation ever!
@thedramaking11383 жыл бұрын
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 Жыл бұрын
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".
@omaralomari37745 жыл бұрын
that is way better than any fucking tutorial, or tutor in my uni thanks mate I really appreciate it.
@rian11964 жыл бұрын
This is very helpful. He explained so well.
@night_traffic2 жыл бұрын
You saved my life. Thanks a looot.
@juanestebanparraparra63022 жыл бұрын
Clearly explained. Thanks for the video
@KumoGhum Жыл бұрын
This is literally perfect
@SandeepSingh-wt9ih5 жыл бұрын
Wow autograph plz u r the real superstar 😍😍😍
@williamhunt83135 жыл бұрын
Really well done Mike. Thanks
@hjz20002 ай бұрын
You're a G. Thank you bro.
@7barsofchocolate3 жыл бұрын
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??
@simranjitsingh34743 жыл бұрын
Good explanation. I like it.
@Ianassa913 жыл бұрын
Thank you! Superb tutorial!
@cristianalburquerque37129 ай бұрын
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
@hemples7 ай бұрын
Awesome vid. Thanks!!!
@simm56223 жыл бұрын
Nicely explained 👍
@Lucuskane3 жыл бұрын
Thanks for the videos! Love 💜
@markevans56484 жыл бұрын
Great video thanks Mike
@salimz.85874 жыл бұрын
You are the best!
@eljanpablo47127 жыл бұрын
Good tutorial, this trick is encapsulation and helpful to security us program
@issamelhoss30673 жыл бұрын
you came in soo clutch thanks.
@mourningdovetunes3 жыл бұрын
So well explained thank you!
@olgadurham98435 жыл бұрын
Thank you so much, this is a great video!
@hind97194 жыл бұрын
very well explained thank you so much
@josselynmunoz87435 жыл бұрын
Hi Mike. Question: What was the purpose of creating setters for the title and director attributes if there are no restrictions to set?
@mohamedhussein69544 жыл бұрын
From my understanding, it's always good practice to use setters and getters regardless of whether there are restrictions or not.
@srschool42982 жыл бұрын
Its just an example SON!
@jishnuvedhikz44044 жыл бұрын
good tutorial.. very help full.. keep going
@senthilmuruganr2343 жыл бұрын
Excellent
@yowzer003 жыл бұрын
"And this is pretty cool, everything is going well."
@wendie1223 жыл бұрын
Thank you so much for this.
@Vidayat1 Жыл бұрын
good job,thank you!
@kimberlymahilum7800 Жыл бұрын
hello Mike, thank you for this tutorial. i just wanna ask, can I use getters without setters? and the other way around?
@Karslo Жыл бұрын
Is there any difference between using "return title;" and "return this.title;" when using getters? Thank you!
@pranaychoubey8294 жыл бұрын
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???
@TheStewie964 жыл бұрын
Thank you!
@Dev_Eli4 жыл бұрын
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?
@myworldisenogh4 жыл бұрын
Great, Thank you
@devidas90 Жыл бұрын
Good one
@nicoaristote96814 жыл бұрын
thanks , this was really helpfhul
@Danilo-op1yp Жыл бұрын
Yo how did you make your eclipse look like that ?
@pranav2883 жыл бұрын
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
@gamesmaname54674 жыл бұрын
your great at teacher man
@ramkumarsenthilnathan86624 жыл бұрын
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 ?
@nikhithanikki84134 жыл бұрын
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
@sandiegodronephotography94543 жыл бұрын
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 Жыл бұрын
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
@FamiliarGecko5 жыл бұрын
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.
@llavesantioquia5 жыл бұрын
looooooooooooool
@mukulsharma57384 жыл бұрын
XD
@WasiAbdullah-h8n3 ай бұрын
Do a video on tracing in java
@marksummers4632 жыл бұрын
Suggestion: Show the exact paths values travel so we know exactly whats going on.
@MoutazGamer5 жыл бұрын
thank you man ♥
@pranaligaikwad47815 жыл бұрын
I want data structures full course from you sir!!!!
@seanbrendangarrette76443 жыл бұрын
Good job, should have told us that the name of the rating should be Rating, capital R
@ELgeneral-pl9yg4 жыл бұрын
Damn bruh you explain this shit really well
@ahmaddawood96915 жыл бұрын
EXCELLENT
@francistettey91142 жыл бұрын
Please why the setters uses void method.
@carolynw.23815 жыл бұрын
really helpful!!!
@ihssancanmturk38424 жыл бұрын
Me think: wonderful this ;)
@joeblue91293 жыл бұрын
thank you all love
@redcrafterlppa3033 жыл бұрын
The movie class would be a prime example to use records now in java 17🤔
@husseinnajafli23054 жыл бұрын
What is the name of this theme?
@Antigashlighting Жыл бұрын
Public Void setTitle(String title){ this.title=title; } Public void setDirector(String director) { this.director=director; } Public String getTitle ( ){ return this.title ;