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
My professor always tells us when we design a Class to go through the following steps: 1: What attributes do we need? 2: Write a constructor 3: Decide whether or not to have getters and setters 4: Write your methods. Also, even if you don't include getters/setters remember to explain why in the documentation to make it more readable.
Me: *Reads about 34 pages about Classes in a textbook, eyes glaze over* Me: *Watches this 7 minutes video, immediately understands everything* THANK YOU!
Me: Pays £9k per year so a lecture can expertly tell me how to do it, eyes glaze over Me: Watches this 7 minutes video, immediately understands everything
I can't even believe how easy you make this to learn. When my programming classes started online due to covid I thought id never make it with the lack instruction I had, and then I found you.
No joke, Alex pat yourself on the back man 👏🏽 You truly changing people futures with the knowledge you share. Respect ✊🏽 Here to say thank you for helping me for this semester. Made a 100 on my midterm and a 96 on my final 💯🔥🔥🔥. Thank You!!!!! god bless 😇
Hey man, I really appreciate you breaking things down to the First Principle. It makes the tutorial really easy to understand without getting panicked about all the other advanced keywords and usages!
dude you just helped me out SOOOO MUCH. i was having trouble understanding it the way my professor explained it but this made it crystal clear. new subscriber
Like everyone else here, I struggled with this concept while reading multiple online resources. This video presents the subject matter succinctly. I learned more in these 7 minutes than I did in the past 7 days. Thank you.
My AP Computer Science teacher started teaching classes last week and he skipped the explanation and started doing a project and I was so confused on what he was doing. This video cleared my confusion, thank you!
Took 4 minutes of your video for me to actually understand classes and objects and how they work, im 6 weeks into my semester learning java and trying to find information online for an explanation and non of it seems to actually help. Im subscribing because i believe thisninformation will actually be beneficial to me and my progress.
Thank you! This video was so helpful in understanding classes and methods. I started a programming class a few weeks ago and until watching your video I still didn't know what the first couple of lines of code I was typing really meant. All I knew was the program didn't run without them. I feel much better about this now.
Dude,its just been couple of days since i found your work and its sooo good man!! you're like one of the best things I found in TH-cam this year ☕☕☕ :)
In 15 minutes this man gave me a great visualization of what are classes and methods and how they work, meanwhile 3 hours reading 2 book chapters left me more confused than when I started. I love u man I'm so happy I found your channel
Dude, you are amazing. You make programming so damn easy to understand and make me understand it waaaaay better than any of my professors, making me a better programmer because of you. Thank you for making these videos dude you are awesome keep it up.
literally the hardest part in programming for me is picking a name for the objects. I don't know why but trying to decide on a name just freezes my brain up
Wow! finally something better than my professor and his online classes I didn't get anything of. I was going to fail this semester if it wasn't for you. thanks a lot bro, the world needs you.
Omg 😀 , you are the only one who can properly explain how to use classes to communicate information between eachother, it actually so easy. I'm coding this on my phone using Code Studio IDE. I'm usually an Android coder, so this won't always work the same, but man you taught me some core Java basics. Thanks, you are by far the best Java teacher out there 👍
One of the most important points to note for beginners is that the main function declaration is *within a class*. That's unlike any other programming language
Hi Alex! you are a hero among men and are the reason a lot of people will become a software developer in the future. Pretty amazing to know you are directly responsible for the next potential facebook or instagram! I don't suppose you would be able to do a lesson on understanding JVM, JRE and JDK and all the other background mechanisms of Java? I have a hard time understanding it all and you explain things perfectly.
Alex, thanks, respect. Could you please one day combine all principles of oop together, use constractor and other thing.. kind of create a small project. We will follow you. You are doing such a great job. Keep teaching us.
The way that I can understand your explaination easily than those videos with my own language is like 🤡. Man you are good at explaining these things. I am just thingking that what if you were my instructor during my college.
Hey Alex! That was an amazing tutorial, but I don't completely understand it. I get that classes can hold things that they "know" or can "do", but I don't really know what methods or objects are. Here are some questions: 1. When you typed "Class1 c = new Class1();" what does c and d mean? 2. What are objects and methods? 3. What kind of structure do you write the code in? Like do you put objects in main, methods right after the class, stuff like that? I'm new to coding, so sorry if I sound stupid. Thanks!
1. I dont understand what you mean by "c" and "d", there is only "c" in the example you provided. Anyway this is a syntax for object creation. He created a object of type Class1 named "c" and stored it somewhere in the memory. If we are a little more specific, "c" is not an object itself but its a reference to one. It knows where in the memory one is located. It points to the memory location where the object exists. "new" is a keyword for memory allocation. Means you create a new object. Class1() is a constructor call. Constructor is like a special method that only gets called once - at object creation. 2. Classes are blueprints from which individual objects are created. With classes you define states(variables) and behaviors(methods) that the objects of the said class can do. Objects are ACTUAL instances off classes. We only define class once, but we can create multiple objects. Example of a class is "planet". It has states like diameter, size, age, gravityPull. It is not a physical entity, just a blueprint. and examples of objects created from this class would be: Mars, Earth, Jupiter etc. These are actual physical entities that we can see. And each object of this class can do things that we specified in class. Each object CAN have its own value in state. By that i mean both mars and earth objects have diameter state but with different value. So earth's diameter is bigger etc. Method is a block of code responsible to do a SPECIFIC action. For example we have method calculateAreaOfSquare() and all it does is calculate area of square nothing else. Good thing of methods is that we can call methods anytime in the program so we dont have to write same code over and over. 3. You should check his OOP videos. It means object oriented programming. It should give you a better idea on how to write a code in OOP way. Then with this it also comes encapsulation, inheritance, polymorphism, abstraction. I hope i helped with this and didnt make it too confusing. If you have any more questions feel free to ask!
I have learned alot of stuff online this couple weeks ;) i did my own bank atm programm :D but what i am struggling now is expirience. like when i get a problem i know the theory code but dont know how to start or i end up doing over - compicated programs and long ones
(1:17) the text below the video "Help this video by clicking the like button" *Can anyone tell me what kind of font that is?* Also great video @Alex Lee 👍
Thanks so much! Was in a 2hr lecture on classes and didn't get a word, partly because the prof never opens an IDE in class, but this makes good sense!!
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
My professor always tells us when we design a Class to go through the following steps:
1: What attributes do we need?
2: Write a constructor
3: Decide whether or not to have getters and setters
4: Write your methods.
Also, even if you don't include getters/setters remember to explain why in the documentation to make it more readable.
Me: *Reads about 34 pages about Classes in a textbook, eyes glaze over*
Me: *Watches this 7 minutes video, immediately understands everything*
THANK YOU!
thats what I thought lol!
Ikr!
same here
same man this vid was so effective
Me: Pays £9k per year so a lecture can expertly tell me how to do it, eyes glaze over
Me: Watches this 7 minutes video, immediately understands everything
I can't even believe how easy you make this to learn. When my programming classes started online due to covid I thought id never make it with the lack instruction I had, and then I found you.
...and now you're married and have his babies. great stuff !
No joke, Alex pat yourself on the back man 👏🏽 You truly changing people futures with the knowledge you share. Respect ✊🏽 Here to say thank you for helping me for this semester. Made a 100 on my midterm and a 96 on my final 💯🔥🔥🔥. Thank You!!!!! god bless 😇
wow
wow
wow
Wow
wow
I feel that I have learned more watching 30 minutes watching your videos than I have in a semester in college. Thank you so much!
Hey man, I really appreciate you breaking things down to the First Principle. It makes the tutorial really easy to understand without getting panicked about all the other advanced keywords and usages!
You are a lifesaver! I’ve spent the last week trying to learn how to do a driver class and three minutes into your video you do it! You’re amazing!
You are saving my school year, thanks a lot
You’ve gotta be one of the best teachers on TH-cam. Thank you so much for sharing all this
dude you just helped me out SOOOO MUCH. i was having trouble understanding it the way my professor explained it but this made it crystal clear. new subscriber
Like everyone else here, I struggled with this concept while reading multiple online resources. This video presents the subject matter succinctly. I learned more in these 7 minutes than I did in the past 7 days. Thank you.
My AP Computer Science teacher started teaching classes last week and he skipped the explanation and started doing a project and I was so confused on what he was doing. This video cleared my confusion, thank you!
Took 4 minutes of your video for me to actually understand classes and objects and how they work, im 6 weeks into my semester learning java and trying to find information online for an explanation and non of it seems to actually help. Im subscribing because i believe thisninformation will actually be beneficial to me and my progress.
Thank you! This video was so helpful in understanding classes and methods. I started a programming class a few weeks ago and until watching your video I still didn't know what the first couple of lines of code I was typing really meant. All I knew was the program didn't run without them. I feel much better about this now.
Dude,its just been couple of days since i found your work and its sooo good man!! you're like one of the best things I found in TH-cam this year ☕☕☕ :)
For me as a beginner, the most difficult thing to understand is java object, class and instance. You explain this clearly. Thank you.💓
I took java my freshmen year of college and this is a great refresher
In 15 minutes this man gave me a great visualization of what are classes and methods and how they work, meanwhile 3 hours reading 2 book chapters left me more confused than when I started. I love u man I'm so happy I found your channel
😂 for real it’s was easy but the books makes it complicated
Dude, you are amazing. You make programming so damn easy to understand and make me understand it waaaaay better than any of my professors, making me a better programmer because of you. Thank you for making these videos dude you are awesome keep it up.
Alex,
your classes are still useful and clear in concept. Thank you for sharing your knowledge and generosity.
ALEX TE AMO! thanks to you I learn more than from my whole degree! LOVE your videos!
literally the hardest part in programming for me is picking a name for the objects. I don't know why but trying to decide on a name just freezes my brain up
Wow! finally something better than my professor and his online classes I didn't get anything of. I was going to fail this semester if it wasn't for you. thanks a lot bro, the world needs you.
Reallly helped me to understand classes more… great vid!
Omg 😀 , you are the only one who can properly explain how to use classes to communicate information between eachother, it actually so easy. I'm coding this on my phone using Code Studio IDE. I'm usually an Android coder, so this won't always work the same, but man you taught me some core Java basics. Thanks, you are by far the best Java teacher out there 👍
You are amazing. The way you teach is perfect for my brain! Much better than my current class in school.
thank you so much I was having really hard time to understand , you made it so much easier .
Simple and to the point, covering the basics and core concept. Thank you.
You have single-handed kept me in my class without you great explanations I would have dropped out.
One of the most important points to note for beginners is that the main function declaration is *within a class*. That's unlike any other programming language
I bought a Udemy course before I discovered your channel. I think your thought process is much better than the instructor's in the Ud course.
You deserve all the thumbs up possible
Hi Alex! you are a hero among men and are the reason a lot of people will become a software developer in the future. Pretty amazing to know you are directly responsible for the next potential facebook or instagram!
I don't suppose you would be able to do a lesson on understanding JVM, JRE and JDK and all the other background mechanisms of Java? I have a hard time understanding it all and you explain things perfectly.
Thank you so much i love you, you just saved me for my java class
Great Tutorial Alex. I used to be so confused. This surely helped me understand. Thanks a lot for teaching so well.. :)
this video taught he more than my college course...
Thanks a ton!
Alex, thanks, respect. Could you please one day combine all principles of oop together, use constractor and other thing.. kind of create a small project. We will follow you. You are doing such a great job. Keep teaching us.
What kind of project are you looking for, I might be able to do it.
Thanks so much bro. This really helped me understand classes and objects better.👍
Love your way of explaining concepts
No doubt the best explanation ever and I’ve watched a shit ton of videos.
Excellent introduction to classes and objects Alex
you are a far better teacher than my sctual teacher in school
Passing my degree from this video right here, thank you.
great tutorial! You are saving my degree!
Hello Alex, thank you for all your videos, they're truly all helpful. Can you please show us a video of understanding and analyzing time complexity?
You make so much more sense than my professor
Amazing as always! Way better than my professor!
Woow. You are an inspiration to many people including myself. Thank you so much and God bless.
Thank you for sharing your knowledge, Alex. Much appreciated.
Great video. Simple and succinct!
You just never fail to explain stuff super easy 👍
Im so sad I just found your channel, your vedios would’ve helped me ALOT with the first couple java courses and I would’ve got A+ easily
better than my professor!
Actually that's as simple and nice, congrats
Thanks for teaching. I learned easily 😌
game changer as always!
It is very easy. Thank you.
Extremely helpful! Thank you!
Video is well done and super helpful 👊
You are a nice young man. Thanks for helping me bro!
Thanks for your content, im starting as hobby very cool what u are doing
Thanks for the tips... very helpful ☕☕☕
This video helped me so much on an assignment that I was going nowhere on... Too bad my professor didn't link your video!
What a good job u did with this video
THANKS ALEX!! CAN YOU MAKE A VID ABOUT GUI BEGINNER TO MEDIUM LEVEL?
So so useful. Thank you!
a literal life saver
hey thanks alot u helped me from long time troubled problem..
Thank you so much for your video! :)
vey well explained thank you very much
The way that I can understand your explaination easily than those videos with my own language is like 🤡. Man you are good at explaining these things. I am just thingking that what if you were my instructor during my college.
Can you make a video on merge sort?
Hey Alex! That was an amazing tutorial, but I don't completely understand it. I get that classes can hold things that they "know" or can "do", but I don't really know what methods or objects are. Here are some questions:
1. When you typed "Class1 c = new Class1();" what does c and d mean?
2. What are objects and methods?
3. What kind of structure do you write the code in? Like do you put objects in main, methods right after the class, stuff like that?
I'm new to coding, so sorry if I sound stupid. Thanks!
1. I dont understand what you mean by "c" and "d", there is only "c" in the example you provided. Anyway this is a syntax for object creation. He created a object of type Class1 named "c" and stored it somewhere in the memory. If we are a little more specific, "c" is not an object itself but its a reference to one. It knows where in the memory one is located. It points to the memory location where the object exists. "new" is a keyword for memory allocation. Means you create a new object. Class1() is a constructor call. Constructor is like a special method that only gets called once - at object creation.
2. Classes are blueprints from which individual objects are created. With classes you define states(variables) and behaviors(methods) that the objects of the said class can do. Objects are ACTUAL instances off classes. We only define class once, but we can create multiple objects. Example of a class is "planet". It has states like diameter, size, age, gravityPull. It is not a physical entity, just a blueprint. and examples of objects created from this class would be: Mars, Earth, Jupiter etc. These are actual physical entities that we can see. And each object of this class can do things that we specified in class. Each object CAN have its own value in state. By that i mean both mars and earth objects have diameter state but with different value. So earth's diameter is bigger etc.
Method is a block of code responsible to do a SPECIFIC action. For example we have method calculateAreaOfSquare() and all it does is calculate area of square nothing else. Good thing of methods is that we can call methods anytime in the program so we dont have to write same code over and over.
3. You should check his OOP videos. It means object oriented programming. It should give you a better idea on how to write a code in OOP way. Then with this it also comes encapsulation, inheritance, polymorphism, abstraction.
I hope i helped with this and didnt make it too confusing. If you have any more questions feel free to ask!
@@ariton2990 Thank you! I needed this explanation. I think I understand now :)
Love you Alex!
Good that you exist!! So do methods tell objects what they can do like walk, jump, follow, make sound etc?
Sheeesh wish I would of found this earlier in the course lol been having the hardest time with Java
I have learned alot of stuff online this couple weeks ;) i did my own bank atm programm :D but what i am struggling now is expirience. like when i get a problem i know the theory code but dont know how to start or i end up doing over - compicated programs and long ones
Great pedagogy! You could change the world if you taught us more subjects.
Thank you for your advised! love it 7 point.
5:10 moving classes in order. #ThumbsUP
appreciate your summary (" of what class")
you look like mr.Beast
thank you man for helping me a lot.
Thankyou so much! its helping alotttttt
Thank you, your videos are great
(1:17) the text below the video "Help this video by clicking the like button"
*Can anyone tell me what kind of font that is?*
Also great video @Alex Lee 👍
You seriously look and sound like Alex Wassabi on youtube lol what a coincidence .. thanks for the tutorials!!!
you r a life saver
Thanks so much! Was in a 2hr lecture on classes and didn't get a word, partly because the prof never opens an IDE in class, but this makes good sense!!
Whats the difference in usage from a Class vs Method?
Can u please do a video on Collections & DataBases in JAVA
this was helpful, thanks :)
Thank you so much really saved me
Hey Alex...
Thanks a lot for your love.
I could not find the click button to download the seven tips pdf. Can you verify if the page is inorder.
You're the best Alex, keep doing what you do! Thank you so much for the awesome tuts!
Finally someone who is not indian that I can understand!!!
omg thank uu this helped so much
I love ur channel man..
I love your tutorials! Do you think you can do a tutorial on generics in Java?
great video!!