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.
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!!!
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!
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!
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.
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".
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.
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
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???
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 ?
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
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??
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; ?
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.
If Mike was my professor in College , then today i would be far ahead in programming 😍😃✌️
exactly
Seriously man... i wish I would’ve found you earlier. Now I’m kinda failing my class, but this helped me a lot 🍀
omg bro, you just saved my object-oriented university course! THANK YOU SO MUCH!!!
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!!!
Your videos are amazing I finally understand classes. Thank you
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!
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!
Thank you very much. You are the only one who has explained Getters and Setters in full for me to understand. Cheers
it took 5 hours for my prof. to explain this but my guy explained it in 17 minutes, thanks for this .
You are the best on freecodecamp bro.
This series is very fun to watch and learn about the new stuff every episode. Thank you soo much for making it.
This needs more views. Not only is it explained well, but the example you used for movies is really effective.
Congrats!
THE BEST EXPLANATIONS PERIOD.
Why did it take me this long to find your videos? Some of the best explanations I've seen on TH-cam. Thank you!
This guy doesn't waste any time! One of the very very few I play at 1x speed.
You explain better than my coding bootcamp's learning platform and i love you for that
I have been confuse before about Getter setter implementation in real case. I got it. Great job bro
this video is perfect. You explained everything so clearly. Thanks Mike.
MAN, I am very thankful for the effort you're putting !
Thanks Mr. Mike you made me understand the whole concept.
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.
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".
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
Wow, you are amazing at teaching! Thank you so much!
@7:10 wow, so simple. I would've gone with a boolean value in a while statement, but this makes it so much simpler!
Great videos! This was a perfect chance to introduce the switch statement... but yer, love your teaching style!
Wow... you really clarified this for me. VERY GREATFUL!
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.
Best getter setter video so far
Man your videos really helped me in my CSC course. Thank you so much
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.
Sir I am a big fan of you. Just hats off...
Ur amazing at teaching man, keep up the good work!!!
Such a solid video, thank you for explaining this so well and giving such clear examples.
Awesome bro. I fully understand this topic from your video..... Thanks
The best explanation ever!
You are an amazing teacher!
Really great at explaining the nuances of the concept. Keep up the good work. :)
This is very helpful. He explained so well.
You deserve millions of subscribers
that is way better than any fucking tutorial, or tutor in my uni thanks mate I really appreciate it.
Clearly explained. Thanks for the video
Really well done Mike. Thanks
You saved my life. Thanks a looot.
This is literally perfect
Good tutorial, this trick is encapsulation and helpful to security us program
You're a G. Thank you bro.
Good explanation. I like it.
Good job, should have told us that the name of the rating should be Rating, capital R
Suggestion: Show the exact paths values travel so we know exactly whats going on.
Wow autograph plz u r the real superstar 😍😍😍
hello Mike, thank you for this tutorial. i just wanna ask, can I use getters without setters? and the other way around?
Hi Mike. Question: What was the purpose of creating setters for the title and director attributes if there are no restrictions to set?
From my understanding, it's always good practice to use setters and getters regardless of whether there are restrictions or not.
Its just an example SON!
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?
very well explained thank you so much
So well explained thank you!
Thank you! Superb tutorial!
good tutorial.. very help full.. keep going
Nicely explained 👍
Great video thanks Mike
you came in soo clutch
thanks.
Is there any difference between using "return title;" and "return this.title;" when using getters?
Thank you!
Awesome vid. Thanks!!!
Do a video on tracing in java
Thank you so much, this is a great video!
You are the best!
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
Thanks for the videos! Love 💜
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.
looooooooooooool
XD
I want data structures full course from you sir!!!!
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
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
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???
Public Void setTitle(String title){
this.title=title;
}
Public void setDirector(String director) {
this.director=director;
}
Public String getTitle ( ){
return this.title ;
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 ?
"And this is pretty cool, everything is going well."
Excellent
The movie class would be a prime example to use records now in java 17🤔
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
Thank you so much for this.
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??
good job,thank you!
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; ?
thanks , this was really helpfhul
Yo how did you make your eclipse look like that ?
Good one
Damn bruh you explain this shit really well
Thank you!
Great, Thank you
thank you all love
your great at teacher man
please show the full program so that people can take screenshots
Please why the setters uses void method.
Me think: wonderful this ;)
EXCELLENT
really helpful!!!
Thanks alot
What is the name of this theme?
So what is the difference between setters and getters?
setter is setting the value, getter is getting the value
thank you man ♥